author | Michael J Gruber <git@drmicha.warpmail.net> | |
Fri, 19 Aug 2011 11:45:43 +0000 (13:45 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 19 Aug 2011 18:01:36 +0000 (11:01 -0700) | ||
commit | e9d4f7405b6ab399ef0ea62a796c646de676555d | |
tree | 309ae2ed0ff47ef9baa51d58f7721457888f462f | tree | snapshot |
parent | ec099546a9afdb73b6bf39d5d684e6fb207e2a7f | commit | diff |
branch.c: use the parsed branch name
When setting up tracking info, branch.c uses the given branch specifier
("name"). Use the parsed name ("ref.buf") instead so that
git branch --set-upstream @{-1} foo
sets up tracking info for the previous branch rather than for a branch
named "@{-1}".
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When setting up tracking info, branch.c uses the given branch specifier
("name"). Use the parsed name ("ref.buf") instead so that
git branch --set-upstream @{-1} foo
sets up tracking info for the previous branch rather than for a branch
named "@{-1}".
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c | diff | blob | history | |
t/t6040-tracking-info.sh | diff | blob | history |