aboutsummaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-11 10:27:13 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-11 10:27:13 +0800
commitdb39e58a139ef8581b4b61d2d4a68b4e5324acdf (patch)
tree7c73c2b6fa71ec1a970fe17f67e10af49e6ec9c9 /serve.go
parent8faa0dbcd77ec17bbf88041f46e2fc48f6ca6f31 (diff)
downloadgitea-db39e58a139ef8581b4b61d2d4a68b4e5324acdf.tar.gz
gitea-db39e58a139ef8581b4b61d2d4a68b4e5324acdf.zip
add actions for http push
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/serve.go b/serve.go
index 3843da617e..882e8bb4f5 100644
--- a/serve.go
+++ b/serve.go
@@ -189,4 +189,13 @@ func runServ(k *cli.Context) {
println("execute command error:", err.Error())
qlog.Fatal("execute command error: " + err.Error())
}
+
+ //refName := os.Getenv("refName")
+ //oldCommitId := os.Getenv("oldCommitId")
+ //newCommitId := os.Getenv("newCommitId")
+
+ //qlog.Error("get envs:", refName, oldCommitId, newCommitId)
+
+ // update
+ //models.Update(refName, oldCommitId, newCommitId, repoUserName, repoName, user.Id)
}