Skip to content

Commit

Permalink
When calling a recursive p, use $0 to find it.
Browse files Browse the repository at this point in the history
This applied to recommit and decommit

Signed-off-by: Neil Brown <[email protected]>
  • Loading branch information
neilbrown committed Jun 13, 2006
1 parent 4f8f70b commit 48d80c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ case $cmd in
then echo >&2 "Cannot find unique patch '$1' - found: $pfile"; exit 1
fi
while [ -s "$pfile" ] &&
p apply last && p commit ; do : ; done
$0 apply last && $0 commit ; do : ; done
;;
decommit )
make_diff
Expand All @@ -845,7 +845,7 @@ case $cmd in
then echo >&2 "Cannot find unique patch '$1' - found: $pfile"; exit 1
fi
while [ -s "$pfile" ] &&
p open last && p discard ; do : ; done
$0 open last && $0 discard ; do : ; done
;;
snapshot )
all_files snap_one
Expand Down

0 comments on commit 48d80c6

Please sign in to comment.