From: Stephan Springl Date: Wed, 23 May 2007 11:13:21 +0000 (+0100) Subject: Use git-for-each-ref to check whether the origin branch exists. X-Git-Tag: v1.5.2.1~19 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7ca055f75ad7ffd2251d4b607fbb86d7bcfd77c7?ds=inline;hp=7ca055f75ad7ffd2251d4b607fbb86d7bcfd77c7 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 Signed-off-by: Junio C Hamano ---