Use git-for-each-ref to check whether the origin branch exists.
commit7ca055f75ad7ffd2251d4b607fbb86d7bcfd77c7
authorStephan Springl <springl-git@bfw-online.de>
Wed, 23 May 2007 11:13:21 +0000 (23 12:13 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 23 May 2007 18:06:38 +0000 (23 11:06 -0700)
tree396a03b46cefebb8a9a1425468877bbaeedd1a92
parentc80e07d4959591f5addcd48c7d42017b40c25f36
Use git-for-each-ref to check whether the origin branch exists.

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>
git-cvsimport.perl