]> source.dussan.org Git - gitea.git/commitdiff
Bug fix
authorUnknown <joe2010xtmf@163.com>
Mon, 17 Mar 2014 20:03:40 +0000 (16:03 -0400)
committerUnknown <joe2010xtmf@163.com>
Mon, 17 Mar 2014 20:03:40 +0000 (16:03 -0400)
models/repo.go

index 93e73b7d17fbcf27ed24ce9ee8f2976d0539cf96..c377747a62dd04872b002120f15743bd8ba6669e 100644 (file)
@@ -201,17 +201,16 @@ func initRepoCommit(tmpPath string, sig *git.Signature) error {
        if _, stderr, err = com.ExecCmd("git", "add", "--all"); err != nil {
                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),
                "-m", "Init commit"); err != nil {
                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 {
                return err
        }
-       // log.Info("stderr(3): %s", stderr)
-       _ = stderr
+       log.Info("stderr(3): %s", stderr)
        return nil
 }