login
Header Space

 
 

Re: Problems setting up bare repository (git 1.5.3.3)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Carl Worth <cworth@...>
Cc: Junio C Hamano <gitster@...>, Barry Fishman <barry_fishman@...>, <git@...>
Date: Monday, October 1, 2007 - 7:35 pm

Carl Worth <cworth@cworth.org> wrote:

This is actually read more as:

 1) Expand "master" to "refs/heads/master"
 2) Expand "refs/heads/master" to "refs/heads/master:refs/heads/master"

We first try to expand the local name to an "absolute" local name,
then if the remote name is missing default it to the same as the
(now expanded) local name.  So "push origin master" is not read as
"push origin refs/haeds/master:master".


How about:

  git config alias.incoming 'log ..FETCH_HEAD'

?  Or do we need --reverse in there too to simulate "hg incoming"?
The thing is, FETCH_HEAD is a lot more powerful than a tracking
branch.  It can contain objects randomly pulled from another
repository (e.g. one shot pulls).
 

Agreed.  We do that in fetch.  We should do that in push.  We should
only mention "refs/*" if the user is pushing something funny, e.g.
pushing into the remote tracking branch space.  Or the stash.  Etc.
Tags and normal branches should be denoted as such.

-- 
Shawn.
-
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:
Problems setting up bare repository (git 1.5.3.3), Barry Fishman, (Mon Oct 1, 5:46 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Mon Oct 1, 6:32 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 5:46 am)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 1:45 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Tue Oct 2, 2:23 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 4:59 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Tue Oct 2, 3:09 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Johannes Schindelin, (Tue Oct 2, 5:02 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Shawn O. Pearce, (Mon Oct 1, 7:35 pm)
Re: Problems setting up bare repository (git 1.5.3.3), Junio C Hamano, (Mon Oct 1, 7:24 pm)
Re: Problems setting up bare repository (git 1.5.3.3), J. Bruce Fields, (Mon Oct 1, 7:17 pm)
speck-geostationary