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
019d491d
Commit
019d491d
authored
Dec 06, 2017
by
Jacob Vosmaer (GitLab)
Committed by
Robert Speicher
Dec 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'git clone --no-local' when creating a fork
parent
7e81de5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGELOG
CHANGELOG
+3
-0
VERSION
VERSION
+1
-1
lib/gitlab_projects.rb
lib/gitlab_projects.rb
+2
-2
No files found.
CHANGELOG
View file @
019d491d
v5.10.1
- Use 'git clone --no-local' when creating a fork (!176)
v5.10.0
- Add a 'fork-repository' command that works with hashed storage (!174)
...
...
VERSION
View file @
019d491d
5.10.
0
5.10.
1
lib/gitlab_projects.rb
View file @
019d491d
...
...
@@ -385,7 +385,7 @@ class GitlabProjects
FileUtils
.
mkdir_p
(
File
.
dirname
(
to_path
),
mode:
0770
)
$logger
.
info
"Forking repository from <
#{
from_path
}
> to <
#{
to_path
}
>."
cmd
=
%W(git clone --bare --
#{
from_path
}
#{
to_path
}
)
cmd
=
%W(git clone --bare --
no-local --
#{
from_path
}
#{
to_path
}
)
system
(
*
cmd
)
&&
self
.
class
.
create_hooks
(
to_path
)
end
...
...
@@ -422,7 +422,7 @@ class GitlabProjects
end
$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 --
no-local --
#{
full_path
}
#{
full_destination_path
}
)
system
(
*
cmd
)
&&
self
.
class
.
create_hooks
(
full_destination_path
)
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