From b5aa13e6011787046d5ea533c6ba02af15bcdba9 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 6 Mar 2012 18:19:49 +0100 Subject: [PATCH] Fix up source hook --- debian/systemd-hack-up-the-source.hook | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/debian/systemd-hack-up-the-source.hook b/debian/systemd-hack-up-the-source.hook index 62eea54e..abbf4d65 100755 --- a/debian/systemd-hack-up-the-source.hook +++ b/debian/systemd-hack-up-the-source.hook @@ -43,19 +43,9 @@ do_patches (){ \#*) ;; *) - count=$(wc -l "$patch_dir/series" | cut -f1 -d' ') - if PATCHES="$(git --git-dir "$REPO_DIR/.git" diff "$line" > "$patch_dir/$line")"; then - if [ -n "$PATCHES" ]; then - echo "$PATCHES" | sed -e "s,$patch_dir/,,g" -e 's, ,\n,g' >> "$patch_dir/series" - else - echo "Warning: no patches from $line" - fi - else - echo "git --git-dir '$REPO_DIR/.git' diff '$line'" - echo "failed." - exit 1 - fi - esac + git --git-dir "$REPO_DIR/.git" diff "$line" > "$patch_dir/$line" + ;; + esac done } -- 2.39.5