summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-20 02:53:54 -0500
committerUnknwon <u@gogs.io>2015-11-20 02:53:54 -0500
commit1d4a5b1825e46b51a1cbd6dc5d24a4ea585a0e72 (patch)
tree4b553e42abab98df2ea228e9d67b9d91c531f570 /models/repo.go
parent987dcc5372998adaafb68e00a9a460e955d018e5 (diff)
downloadgitea-1d4a5b1825e46b51a1cbd6dc5d24a4ea585a0e72.tar.gz
gitea-1d4a5b1825e46b51a1cbd6dc5d24a4ea585a0e72.zip
fix #2002
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/repo.go b/models/repo.go
index 800094098b..cc7bde3a8c 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -576,20 +576,20 @@ func MigrateRepository(u *User, opts MigrateRepoOptions) (*Repository, error) {
func initRepoCommit(tmpPath string, sig *git.Signature) (err error) {
var stderr string
if _, stderr, err = process.ExecDir(-1,
- tmpPath, fmt.Sprintf("initRepoCommit(git add): %s", tmpPath),
+ tmpPath, fmt.Sprintf("initRepoCommit (git add): %s", tmpPath),
"git", "add", "--all"); err != nil {
return fmt.Errorf("git add: %s", stderr)
}
if _, stderr, err = process.ExecDir(-1,
- tmpPath, fmt.Sprintf("initRepoCommit(git commit): %s", tmpPath),
+ tmpPath, fmt.Sprintf("initRepoCommit (git commit): %s", tmpPath),
"git", "commit", fmt.Sprintf("--author='%s <%s>'", sig.Name, sig.Email),
"-m", "initial commit"); err != nil {
return fmt.Errorf("git commit: %s", stderr)
}
if _, stderr, err = process.ExecDir(-1,
- tmpPath, fmt.Sprintf("initRepoCommit(git push): %s", tmpPath),
+ tmpPath, fmt.Sprintf("initRepoCommit (git push): %s", tmpPath),
"git", "push", "origin", "master"); err != nil {
return fmt.Errorf("git push: %s", stderr)
}
@@ -700,7 +700,7 @@ func initRepository(e Engine, repoPath string, u *User, repo *Repository, opts C
// Init bare new repository.
os.MkdirAll(repoPath, os.ModePerm)
_, stderr, err := process.ExecDir(-1, repoPath,
- fmt.Sprintf("initRepository(git init --bare): %s", repoPath), "git", "init", "--bare")
+ fmt.Sprintf("initRepository (git init --bare): %s", repoPath), "git", "init", "--bare")
if err != nil {
return fmt.Errorf("git init --bare: %v - %s", err, stderr)
}