Re: git push to a non-bare repository

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: Junio C Hamano <junkio@...>, git <git@...>
Date: Sunday, March 18, 2007 - 11:21 pm

On Sun, Mar 18, 2007 at 10:56:03PM -0400, Shawn O. Pearce wrote:

So I dug a little more deeply, and the problem is that the reflog for
master was getting updated, but not the reflog for HEAD, and that's
what "git reflog" was showing --- hence my confusion.

What are the rules for when HEAD's reflog should get updated, and is
this documented anywhere in the man pages?

						- Ted

Script started on Sun 18 Mar 2007 11:11:59 PM EDT
Top-level shell (parent script)
Using ssh-agent pid 7679
<tytso@candygram> {/home/tytso/talks/dscm/git}  
1% cp -r test1 test2 ; cd test2
<tytso@candygram> {/home/tytso/talks/dscm/git/test2}  
2% (cd r2; git-config core.logallrefupdates)
true
<tytso@candygram> {/home/tytso/talks/dscm/git/test2}  
3% cat r2/.git/refs/heads/master
f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2
<tytso@candygram> {/home/tytso/talks/dscm/git/test2}  
4% cat r2/.git/logs/HEAD
0000000000000000000000000000000000000000 f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2 Theodore Ts'o <tytso@mit.edu> 1174266825 -0400
<tytso@candygram> {/home/tytso/talks/dscm/git/test2}  
5% cat r2/.git/logs/refs/heads/master
0000000000000000000000000000000000000000 f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2 Theodore Ts'o <tytso@mit.edu> 1174266825 -0400
<tytso@candygram> {/home/tytso/talks/dscm/git/test2}  
6% (cd r1 ; git push ../r2)
updating 'refs/heads/master'
  from f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2
  to   37508dc11dbe274d021124057fd2d027f6ce9d17
Generating pack...
Done counting 5 objects.
Result has 3 objects.
Deltifying 3 objects.
 100% (3/3) done
Writing 3 objects.
 100% (3/3) done
Total 3 (delta 2), reused 0 (delta 0)
Unpacking 3 objects
  100% (3/3) done
refs/heads/master: f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2 -> 37508dc11dbe274d021124057fd2d027f6ce9d17
<tytso@candygram> {/home/tytso/talks/dscm/git/test2}  
7% cd r2
<tytso@candygram> {/home/tytso/talks/dscm/git/test2/r2}  [master]
8% cat .git/refs/heads/master
37508dc11dbe274d021124057fd2d027f6ce9d17
<tytso@candygram> {/home/tytso/talks/dscm/git/test2/r2}  [master]
9% cat .git/logs/HEAD
0000000000000000000000000000000000000000 f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2 Theodore Ts'o <tytso@mit.edu> 1174266825 -0400
<tytso@candygram> {/home/tytso/talks/dscm/git/test2/r2}  [master]
10% cat .git/logs/refs/heads/master
0000000000000000000000000000000000000000 f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2 Theodore Ts'o <tytso@mit.edu> 1174266825 -0400
f2e3cc0bb64c8c94b89ba07bfbdd1653584586f2 37508dc11dbe274d021124057fd2d027f6ce9d17 Theodore Ts'o <tytso@mit.edu> 1174274004 -0400	push
<tytso@candygram> {/home/tytso/talks/dscm/git/test2/r2}  [master]
11% git reflog
37508dc... HEAD@{0}: 
<tytso@candygram> {/home/tytso/talks/dscm/git/test2/r2}  [master]
13% git version
git version 1.5.0.5.425.g9cec6-dirty
<tytso@candygram> {/home/tytso/talks/dscm/git/test2/r2}  [master]
14% exit

Script done on Sun 18 Mar 2007 11:14:28 PM EDT
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push to a non-bare repository, Matthieu Moy, (Sun Mar 18, 1:31 pm)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 10:00 pm)
Re: git push to a non-bare repository, Matthieu Moy, (Mon Mar 19, 5:19 am)
Re: git push to a non-bare repository, Junio C Hamano, (Sun Mar 18, 9:55 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 10:21 pm)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 10:47 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 10:56 pm)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 11:33 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 11:47 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 12:14 am)
Re: git push to a non-bare repository, Theodore Tso, (Sun Mar 18, 11:21 pm)
Re: git push to a non-bare repository, Shawn O. Pearce, (Sun Mar 18, 11:53 pm)
Re: git push to a non-bare repository, Sam Vilain, (Mon Mar 19, 7:58 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 8:49 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 8:54 pm)
Re: git push to a non-bare repository, Nicolas Pitre, (Mon Mar 19, 12:08 am)
Re: git push to a non-bare repository, Theodore Tso, (Mon Mar 19, 2:25 am)
Re: git push to a non-bare repository, Nicolas Pitre, (Mon Mar 19, 11:16 am)
Re: git push to a non-bare repository, Junio C Hamano, (Mon Mar 19, 2:44 am)
Re: git push to a non-bare repository, Nicolas Pitre, (Mon Mar 19, 11:20 am)
Re: git push to a non-bare repository, Junio C Hamano, (Sun Mar 18, 3:47 pm)
Re: git push to a non-bare repository, Sam Vilain, (Sun Mar 18, 5:51 pm)
Re: git push to a non-bare repository, Junio C Hamano, (Sun Mar 18, 6:18 pm)