[PATCH] Fix guilt to work correctly even if the refs are packed
[guilt.git] / guilt-refresh
blobd75fac901f40ad3859d6c6a729637f9e7442cd87
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 USAGE="[--git]"
7 . `dirname $0`/guilt
9 case $# in
13 [ "$1" != "--git" ] && usage
14 gdiff=t
16 esac
18 TOP=`get_top`
20 if [ -z "$TOP" ]; then
21 die "No patches applied; try guilt-push first"
24 refresh_patch "$TOP" "$gdiff"