notes about 'git bug'
This commit is contained in:
parent
0c5183edf9
commit
4ab621a7f2
32
clone.go
32
clone.go
|
@ -10,6 +10,38 @@ import (
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
# to support distributed 'git bug'
|
||||||
|
|
||||||
|
# create a new user:
|
||||||
|
git bug user new -e "jcarr@wit.com" -n "Jeff Carr"
|
||||||
|
|
||||||
|
git pull origin +refs/bugs/\*:refs/bugs/\*
|
||||||
|
git pull origin +refs/identities/\*:refs/identities/\*
|
||||||
|
|
||||||
|
git show-ref | grep refs/bugs/
|
||||||
|
|
||||||
|
git log refs/bugs/<some-id>
|
||||||
|
|
||||||
|
git config --add remote.origin.fetch '+refs/bugs/*:refs/bugs/*'
|
||||||
|
git config --add remote.origin.fetch '+refs/identities/*:refs/identities/*'
|
||||||
|
|
||||||
|
git config --get-all remote.origin.fetch
|
||||||
|
|
||||||
|
[remote "origin"]
|
||||||
|
url = ...
|
||||||
|
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||||
|
fetch = +refs/bugs/*:refs/bugs/*
|
||||||
|
fetch = +refs/identities/*:refs/identities/*
|
||||||
|
|
||||||
|
# remove the caches
|
||||||
|
rm -rf .git/git-bug
|
||||||
|
|
||||||
|
# rebuild the cache with any command
|
||||||
|
git bug user
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
func clone(gopath string) (*gitpb.Repo, error) {
|
func clone(gopath string) (*gitpb.Repo, error) {
|
||||||
// if the user defined a repo, attempt to download it now
|
// if the user defined a repo, attempt to download it now
|
||||||
if gopath == "" {
|
if gopath == "" {
|
||||||
|
|
Loading…
Reference in New Issue