Cron <git-svn at code> $HOME/git-svn-sync

Derek Atkins warlord at MIT.EDU
Wed Aug 28 10:18:22 EDT 2013


John Ralls <jralls at ceridwen.us> writes:

>>> Might either the svn or gitolite hooks be doing something behind our backs?
>> 
>> I don't know.  You wrote the svn->git push script..  And I'm pretty sure
>> the git(olite)->github push is available (although I think Geert did
>> that).  I'm not sure what it could be doing behind our backs.
>
> Where is the gitolite hook? I see only the mail hooks in gitolite-admin

local-code/hooks/common/post-receive

It just does:

    echo "*** Push refs to origin (usually github)..."
    git push --all
    git push --tags

>> Maybe this is just something from the first push?  Maybe the next push
>> will be okay?
>> 
>> One thing I noticed is:
>> 
>> [root at code repositories]# cat gnucash*.git/refs/heads/master 
>> ref: refs/heads/trunk
>> ref: refs/heads/trunk
>> 7407a508e79e64cb94b9792991999095ca141b2e
>> 
>> So master is still a ref to trunk..  However:
>> 
>> [root at code repositories]# cat gnucash*.git/HEAD
>> ref: refs/heads/trunk
>> ref: refs/heads/trunk
>> ref: refs/heads/master
>> 
>> Git can be so confusing sometimes.....
>
>
> That's interesting. Those need to be cleaned up. You can just delete
> HEAD and recreate it with
> `git symbolic-ref HEAD refs/heads/trunk`, and just delete master. `git
> show-ref master` may still
> show master in packed-refs, `git branch -D master` should get rid of it.

Note that those are showing gnucash.git, gnucash-docs.git, and
gnucash-htdocs.git.  So:

gnucash/HEAD        -> refs/heads/trunk
gnucash-docs/HEAD   -> refs/heads/trunk
gnucash-htdocs/HEAD -> refs/heads/master

So this looks correct.

What seems to be wrong are the refs/heads/master, where
gnucash.git/refs/heads/master and gnucash-docs.git/refs/heads/master
still have "ref: refs/heads/trunk"

I did run "git branch -D master" in those repos, but it looks like it
didn't clean those up?

> Regards,
> John Ralls

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list