diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-24 18:43:17 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-24 18:43:17 -0400 |
commit | f1d87462642aa0ab4ce61e8a285e3a288b4dc119 (patch) | |
tree | ebebe7ec77b9f4f8b0a38fa3b92cd49662244cca /models/repo.go | |
parent | baae94b9cfe716eb85a56ea0bf3528af29413c6e (diff) | |
download | gitea-f1d87462642aa0ab4ce61e8a285e3a288b4dc119.tar.gz gitea-f1d87462642aa0ab4ce61e8a285e3a288b4dc119.zip |
Fix fork repo and macaron API broken
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
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) } |