login
Header Space

 
 

Re: git push bug?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steffen Prohaska <prohaska@...>
Cc: git <git@...>
Date: Thursday, October 18, 2007 - 12:01 pm

On Thu, 2007-10-18 at 17:14 +0200, Steffen Prohaska wrote:

Now the push went OK:
git push  ssh://devsrv/var/git/os2kernel.git linus:refs/head/linus
Warning: No xauth data; using fake authentication data for X11 forwarding.
updating 'refs/head/linus' using 'refs/heads/linus'
  from 0000000000000000000000000000000000000000
  to   bbf25010f1a6b761914430f5fca081ec8c7accd1
Generating pack...
Done counting 0 objects.
Writing 0 objects...
Total 0 (delta 0), reused 0 (delta 0)
refs/head/linus: 0000000000000000000000000000000000000000 -> bbf25010f1a6b761914430f5fca081ec8c7accd1

but there is no linus branch in the server repo!

However:
 git push  ssh://devsrv/var/git/os2kernel.git linus

creates a linus branch in the server and 

 git push  ssh://devsrv/var/git/os2kernel.git :linus
 Warning: No xauth data; using fake authentication data for X11 forwarding. 
 deleting 'refs/heads/linus'
 refs/heads/linus: bbf25010f1a6b761914430f5fca081ec8c7accd1 -> deleted
 Everything up-to-date

deletes the linus branch on the server and so does
git push  ssh://devsrv/var/git/os2kernel.git :refs/heads/linus

ahh, now I see. When creating the branch the refspec needs to be refs/heads/linus,
not refs/head/linus

refs/head/linus will create just that on the server. git branch does not look
there, only in refs/heads

Seems like it is a bit too easy to make mistakes here. Why can I delete
a branch with :linus but not create one with linus:linus?
Also confusing that git lets me create refs/head/linus when git branch
cannot find it.

 Jocke

-
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 bug?, Joakim Tjernlund, (Thu Oct 18, 10:50 am)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 11:14 am)
Re: git push bug?, Shawn O. Pearce, (Thu Oct 18, 8:24 pm)
RE: git push bug?, Joakim Tjernlund, (Sat Oct 20, 1:38 pm)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:01 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 12:21 pm)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:31 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 6:00 pm)
Re: git push bug?, Joakim Tjernlund, (Fri Oct 19, 10:47 am)
Re: git push bug?, Johannes Schindelin, (Fri Oct 19, 1:24 pm)
RE: git push bug?, Joakim Tjernlund, (Fri Oct 19, 2:50 pm)
Re: git push bug?, Jan Hudec, (Sat Oct 20, 8:05 am)
RE: git push bug?, Johannes Schindelin, (Fri Oct 19, 6:46 pm)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 12:55 pm)
Re: git push bug?, Johannes Schindelin, (Thu Oct 18, 5:58 pm)
Re: git push bug?, Steffen Prohaska, (Sat Oct 20, 4:29 am)
RE: git push bug?, Joakim Tjernlund, (Sat Oct 20, 7:52 am)
Re: git push bug?, Steffen Prohaska, (Sat Oct 20, 4:38 am)
Re: git push bug?, Joakim Tjernlund, (Thu Oct 18, 12:10 pm)
Re: git push bug?, Shawn O. Pearce, (Thu Oct 18, 8:49 pm)
Re: git push bug?, Steffen Prohaska, (Thu Oct 18, 12:13 pm)
speck-geostationary