summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-24 18:43:17 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-24 18:43:17 -0400
commitf1d87462642aa0ab4ce61e8a285e3a288b4dc119 (patch)
treeebebe7ec77b9f4f8b0a38fa3b92cd49662244cca /models/repo.go
parentbaae94b9cfe716eb85a56ea0bf3528af29413c6e (diff)
downloadgitea-f1d87462642aa0ab4ce61e8a285e3a288b4dc119.tar.gz
gitea-f1d87462642aa0ab4ce61e8a285e3a288b4dc119.zip
Fix fork repo and macaron API broken
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index a55e91402b..dc47b2e6e9 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1424,7 +1424,7 @@ func ForkRepository(u *User, oldRepo *Repository) (*Repository, error) {
repoPath := RepoPath(u.Name, repo.Name)
_, stderr, err := process.ExecTimeout(10*time.Minute,
fmt.Sprintf("ForkRepository(git clone): %s/%s", u.Name, repo.Name),
- "git", "clone", oldRepoPath, repoPath)
+ "git", "clone", "--bare", oldRepoPath, repoPath)
if err != nil {
return nil, errors.New("ForkRepository(git clone): " + stderr)
}