"github.com/gogits/gogs/modules/setting" | "github.com/gogits/gogs/modules/setting" | ||||
) | ) | ||||
const APP_VER = "0.6.9.0907 Beta" | |||||
const APP_VER = "0.6.9.0909 Beta" | |||||
func init() { | func init() { | ||||
runtime.GOMAXPROCS(runtime.NumCPU()) | runtime.GOMAXPROCS(runtime.NumCPU()) |
} | } | ||||
tmpDir := filepath.Join(os.TempDir(), "gogs-"+repo.Name+"-"+com.ToStr(time.Now().Nanosecond())) | tmpDir := filepath.Join(os.TempDir(), "gogs-"+repo.Name+"-"+com.ToStr(time.Now().Nanosecond())) | ||||
fmt.Println(tmpDir) | |||||
// Initialize repository according to user's choice. | // Initialize repository according to user's choice. | ||||
if opts.AutoInit { | if opts.AutoInit { | ||||
os.MkdirAll(tmpDir, os.ModePerm) | os.MkdirAll(tmpDir, os.ModePerm) |
0.6.9.0907 Beta | |||||
0.6.9.0909 Beta |