From 757e4f658c400d55eab6f11f1c39c1772cf615a7 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 17 Mar 2014 11:56:50 -0400 Subject: [PATCH] Completely rule out the cgo --- .gopmfile | 9 +-- README.md | 4 +- conf/content/git-bare.zip | Bin 0 -> 9910 bytes models/repo.go | 122 ++++++++++++++++++++++---------------- models/user.go | 5 +- routers/repo/repo.go | 7 ++- 6 files changed, 85 insertions(+), 62 deletions(-) create mode 100644 conf/content/git-bare.zip diff --git a/.gopmfile b/.gopmfile index 2aea7ea584..8d965631af 100644 --- a/.gopmfile +++ b/.gopmfile @@ -4,17 +4,18 @@ path=github.com/gogits/gogs [deps] github.com/codegangsta/cli= github.com/codegangsta/martini= -github.com/gogits/binding= github.com/martini-contrib/render= github.com/martini-contrib/sessions= github.com/Unknwon/com= +github.com/Unknwon/cae= +github.com/Unknwon/goconfig= github.com/dchest/scrypt= github.com/go-sql-driver/mysql= -github.com/libgit2/git2go=commit:054268a63418b03892bfd4c6a509a0294660074b github.com/lunny/xorm= -github.com/speedata/gogit= -github.com/Unknwon/goconfig= +github.com/slene/blackfriday= github.com/gogits/logs= +github.com/gogits/binding= +github.com/gogits/git= [res] include=templates|public|conf diff --git a/README.md b/README.md index d0a0c2054c..52f95f3c68 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Gogs - Go Git Service [![wercker status](https://app.wercker.com/status/ad0bdb0b Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language. -Since we choose to use pure Go implmentation of Git manipulation, Gogs certainly supports **ALL platforms** that Go supports, including Linux, Max OS X, and Windows with **ZERO** dependency. +Since we choose to use pure Go implementation of Git manipulation, Gogs certainly supports **ALL platforms** that Go supports, including Linux, Max OS X, and Windows with **ZERO** dependency. ##### Current version: 0.0.9 Alpha @@ -18,7 +18,7 @@ Please see [Wiki](https://github.com/gogits/gogs/wiki) for project design, devel ## Features - Activity timeline -- SSH protocal support. +- SSH protocol support. - Register/delete account. - Create/delete public repository. - User profile page. diff --git a/conf/content/git-bare.zip b/conf/content/git-bare.zip new file mode 100644 index 0000000000000000000000000000000000000000..fde0a1f96ee859f32e18e4b2241174d64cd728c8 GIT binary patch literal 9910 zcmb_ibySq^w*F|OyJP6?6r@DDySsacp;JC*!z2*QB{D0#{&QW8A#G}eE?UR=WGc8KqvqJhyVasxHwze z*+@O+!UzVT0XE*@DhF`R(lV5$WUA5puzXH@?@re?yq^z`kaDrUsC zv{~$+?*J<;yOF03R_n@m^I2xd3xSErTy%4$Wvg}R>BU3{h3{luRmXVZlM;<5eI2T| z;t+^Iq7(xFKn?%^Q~&@ht=ui#?7$v&F3zYU!wRpJl++mI*m+5RQ>hk@6V4^*}AwmxO3cw zH$9ElMS%f;moNZ8`pd@*40iMZn|WB+vN^fiu)CW%fgP;^;zU$>#nB>c_H@!3KEcYp z9MYtvoyLdA%uEmJJ?F?GZ$$XK^4#Ih?o0dj!0Z|0#b)6{Hqu5_RPWEhGQ0UwoK%my zjPe;lFhZeA$mUqBt7La(IfEswML+`63U=(#S>hVi;LhrJn1Q7SBMgDB5fgg zgxWI??h1IcCd#o)#*gb)=RQYv=$o2D9r0DsCoD;3&r3ZYLCdJRnjBNBKobs5Zlu^c ziHTW)pd?n6ZH0d!c4oxSz;@Aiaf?p3a+;i?_FSOh!q>MXW&4wXNIB*06n^|Vgmnr7 z0KsrSXX$5}EnJ+O>^yF!FTuoRiW9FdCsV~$mSs{~so*fGK|Yjv7Bx}#^ufmsdVxoc zFGn3CKR@&Lsv_aC)>NvHzG-zqSx$(BGqg+o4k{ov%L2EDGm;a_I{1|`BO^>eq`jn3 zWEf~I@2Fr6>A8#vE%{g#qs?z+B%~`9P|i^{t9OTvrJ{+ZQ1!71FuAT`8I9Cu*9PaA z3TgV6%k;rfJ2~NV&}6r1b@Xr{guvC7?BhzogplenF{>M;Fbyoq;uCdz-l5>1&%|I( z$Py#&lE8~YxMNZ+8;?B#8yOh)2@TStde(qduUucr53f9h4g(hKen0XhGiGpl!F~jbVhOIf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