1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00
This commit is contained in:
Unknown 2014-03-17 16:03:40 -04:00
parent 97b7cb0dca
commit 6ca32ef44f

View file

@ -201,17 +201,16 @@ func initRepoCommit(tmpPath string, sig *git.Signature) error {
if _, stderr, err = com.ExecCmd("git", "add", "--all"); err != nil { if _, stderr, err = com.ExecCmd("git", "add", "--all"); err != nil {
return err return err
} }
// log.Info("stderr(1): %s", stderr) log.Info("stderr(1): %s", stderr)
if _, stderr, err = com.ExecCmd("git", "commit", fmt.Sprintf("--author='%s <%s>'", sig.Name, sig.Email), if _, stderr, err = com.ExecCmd("git", "commit", fmt.Sprintf("--author='%s <%s>'", sig.Name, sig.Email),
"-m", "Init commit"); err != nil { "-m", "Init commit"); err != nil {
return err return err
} }
// log.Info("stderr(2): %s", stderr) log.Info("stderr(2): %s", stderr)
if _, stderr, err = com.ExecCmd("git", "push", "origin", "master"); err != nil { if _, stderr, err = com.ExecCmd("git", "push", "origin", "master"); err != nil {
return err return err
} }
// log.Info("stderr(3): %s", stderr) log.Info("stderr(3): %s", stderr)
_ = stderr
return nil return nil
} }