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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
4616d2ef
Commit
4616d2ef
authored
Nov 07, 2013
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate options from arguments with --
parent
bd3ccfbc
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 @
4616d2ef
...
@@ -48,7 +48,7 @@ class GitlabProjects
...
@@ -48,7 +48,7 @@ class GitlabProjects
def
create_branch
def
create_branch
branch_name
=
ARGV
.
shift
branch_name
=
ARGV
.
shift
ref
=
ARGV
.
shift
||
"HEAD"
ref
=
ARGV
.
shift
||
"HEAD"
cmd
=
%W(git --git-dir=
#{
full_path
}
branch
#{
branch_name
}
#{
ref
}
)
cmd
=
%W(git --git-dir=
#{
full_path
}
branch
--
#{
branch_name
}
#{
ref
}
)
system
(
*
cmd
)
system
(
*
cmd
)
end
end
...
@@ -61,7 +61,7 @@ class GitlabProjects
...
@@ -61,7 +61,7 @@ class GitlabProjects
def
create_tag
def
create_tag
tag_name
=
ARGV
.
shift
tag_name
=
ARGV
.
shift
ref
=
ARGV
.
shift
||
"HEAD"
ref
=
ARGV
.
shift
||
"HEAD"
cmd
=
%W(git --git-dir=
#{
full_path
}
tag
#{
tag_name
}
#{
ref
}
)
cmd
=
%W(git --git-dir=
#{
full_path
}
tag
--
#{
tag_name
}
#{
ref
}
)
system
(
*
cmd
)
system
(
*
cmd
)
end
end
...
@@ -94,7 +94,7 @@ class GitlabProjects
...
@@ -94,7 +94,7 @@ class GitlabProjects
def
import_project
def
import_project
@source
=
ARGV
.
shift
@source
=
ARGV
.
shift
$logger
.
info
"Importing project
#{
@project_name
}
from <
#{
@source
}
> to <
#{
full_path
}
>."
$logger
.
info
"Importing project
#{
@project_name
}
from <
#{
@source
}
> to <
#{
full_path
}
>."
cmd
=
%W(git clone --bare
#{
@source
}
#{
full_path
}
)
cmd
=
%W(git clone --bare
--
#{
@source
}
#{
full_path
}
)
system
(
*
cmd
)
&&
create_hooks
(
full_path
)
system
(
*
cmd
)
&&
create_hooks
(
full_path
)
end
end
...
@@ -156,7 +156,7 @@ class GitlabProjects
...
@@ -156,7 +156,7 @@ class GitlabProjects
end
end
$logger
.
info
"Forking project from <
#{
full_path
}
> to <
#{
full_destination_path
}
>."
$logger
.
info
"Forking project from <
#{
full_path
}
> to <
#{
full_destination_path
}
>."
cmd
=
%W(git clone --bare
#{
full_path
}
#{
full_destination_path
}
)
cmd
=
%W(git clone --bare
--
#{
full_path
}
#{
full_destination_path
}
)
system
(
*
cmd
)
&&
create_hooks
(
full_destination_path
)
system
(
*
cmd
)
&&
create_hooks
(
full_destination_path
)
end
end
...
...
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