Use git-for-each-ref to check whether the origin branch exists.
authorStephan Springl <springl-git@bfw-online.de>
Wed, 23 May 2007 11:13:21 +0000 (12:13 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 23 May 2007 18:06:38 +0000 (11:06 -0700)
This works in repositories that have their refs packed by
"git-pack-refs --all --prune" whereas testing the file
$git_dir/refs/heads/$opt_o does not.

Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found