Git mirror setup with bare upstream repo for Gogs -
given existing bare repository on network share, i'd able use gogs issue tracking (etc.) without disrupting workflow else who's using bare repo.after reading bit, under impression mirror provide functionality, , able set in gogs through migration. when adding migration in gogs providing path network bare repository , selecting "this repository mirror", however, following error:
migration failed: check bare: exit status 128 - fatal: bad object head
looking @ log, can see following:
2016/06/13 13:19:20 [t] action.newrepoaction: myuser/the-repo-name [git-module] git clone --mirror --quiet x:\path\to\bare\repo.git x:\path\to\gogs\repo.git 2016/06/13 13:19:30 [w] delete repository wiki [x:\path\to\gogs\the-repo-name.wiki.git]: exit status 2
strangely enough, can issue git clone --mirror
through git bash , have execute successfully.
$ git clone --mirror /x/path/to/repo.git my-mirror.git cloning bare repository 'my-mirror.git'... done.
my questions following:
- is set possible? is, can commit gogs mirror , have commits pushed upstream bare repo, , viceversa (commits other users bare being synchronized gogs mirror)?
- if so, how can work on gogs?
many in advance!
ps: error above when attempting migration on brand new bare repo, wouldn't think issue lies in bare repo itself.
after trying again on last release of gogs (v0.9.13), issue seems have been fixed.
Comments
Post a Comment