diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-01 07:40:48 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-01 07:40:48 -0400 |
commit | f03b6be8f997efbcfea45326629e532e834b998b (patch) | |
tree | 4bd7041a2836325c6a969d7a3f78b2cb75a6bf56 | |
parent | 3ffa17c49a41f24492fc3c8d80854e5a5a0b3a34 (diff) | |
download | gitea-f03b6be8f997efbcfea45326629e532e834b998b.tar.gz gitea-f03b6be8f997efbcfea45326629e532e834b998b.zip |
Work on #516
-rw-r--r-- | cmd/serve.go | 8 | ||||
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/cmd/serve.go b/cmd/serve.go index b1dffc92e7..c18bf3ad4b 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -171,7 +171,13 @@ func runServ(k *cli.Context) { uuid := uuid.NewV4().String() os.Setenv("uuid", uuid) - gitcmd := exec.Command(verb, repoPath) + var gitcmd *exec.Cmd + verbs := strings.Split(verb, " ") + if len(verbs) == 2 { + gitcmd = exec.Command(verbs[0], verbs[1], repoPath) + } else { + gitcmd = exec.Command(verb, repoPath) + } gitcmd.Dir = setting.RepoRootPath gitcmd.Stdout = os.Stdout gitcmd.Stdin = os.Stdin @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.5.4.0930 Beta" +const APP_VER = "0.5.4.1001 Beta" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/templates/.VERSION b/templates/.VERSION index c734a8f05b..bae760995d 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.5.4.0930 Beta
\ No newline at end of file +0.5.4.1001 Beta
\ No newline at end of file |