Skip to content

Commit

Permalink
quiltimport: Skip non-existent patches
Browse files Browse the repository at this point in the history
When quiltimport encounters a non-existent patch in the series file,
just skip to the next patch. This matches the behavior of quilt.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Dan Nicholson authored and Junio C Hamano committed Sep 27, 2007
1 parent 26b2800 commit 9f569fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-quiltimport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ commit=$(git rev-parse HEAD)

mkdir $tmp_dir || exit 2
for patch_name in $(grep -v '^#' < "$QUILT_PATCHES/series" ); do
if ! [ -f "$QUILT_PATCHES/$patch_name" ] ; then
echo "$patch_name doesn't exist. Skipping."
continue
fi
echo $patch_name
git mailinfo "$tmp_msg" "$tmp_patch" \
<"$QUILT_PATCHES/$patch_name" >"$tmp_info" || exit 3
Expand Down

0 comments on commit 9f569fe

Please sign in to comment.