Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-shell
Commits
af88f842
Commit
af88f842
authored
Nov 05, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clean_up_fork_and_import' of /home/git/repositories/gitlab/gitlab-shell
parents
261cb1fe
0233e806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/gitlab_projects.rb
lib/gitlab_projects.rb
+4
-4
No files found.
lib/gitlab_projects.rb
View file @
af88f842
...
...
@@ -94,8 +94,8 @@ class GitlabProjects
def
import_project
@source
=
ARGV
.
shift
$logger
.
info
"Importing project
#{
@project_name
}
from <
#{
@source
}
> to <
#{
full_path
}
>."
cmd
=
%W(git clone --bare
#{
@source
}
#{
project_name
}
)
system
(
*
cmd
,
chdir:
repos_path
)
&&
create_hooks
(
full_path
)
cmd
=
%W(git clone --bare
#{
@source
}
#{
full_path
}
)
system
(
*
cmd
)
&&
create_hooks
(
full_path
)
end
# Move repository from one directory to another
...
...
@@ -156,8 +156,8 @@ class GitlabProjects
end
$logger
.
info
"Forking project from <
#{
full_path
}
> to <
#{
full_destination_path
}
>."
cmd
=
%W(git clone --bare
#{
full_path
}
)
system
(
*
cmd
,
chdir:
namespaced_path
)
&&
create_hooks
(
full_destination_path
)
cmd
=
%W(git clone --bare
#{
full_path
}
#{
full_destination_path
}
)
system
(
*
cmd
)
&&
create_hooks
(
full_destination_path
)
end
def
update_head
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment