summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2012-12-13 18:03:33 +0100
committerJean Delvare <jdelvare@suse.de>2012-12-13 18:03:33 +0100
commit6cc63d0c2289f80c303780fd9b92d4af8c539002 (patch)
tree428a987376a83a3d548f72620375ebacca4705f7
parent6c4be0512ef99f49d9535bc32cd0d595d7830ffd (diff)
downloadquilt-6cc63d0c2289f80c303780fd9b92d4af8c539002.tar.gz
pop: Harmonize `patch --force` usage between push and pop
push:apply_patch() uses --force by default but pop:check_for_pending_changes() does not. This leads to a problem when trying to pop a patch that changes files which were originally read-only: patch refuses to touch them.
-rw-r--r--quilt/pop.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/quilt/pop.in b/quilt/pop.in
index 17dc2b4..a1bfc3c 100644
--- a/quilt/pop.in
+++ b/quilt/pop.in
@@ -108,7 +108,7 @@ check_for_pending_changes()
if ! cat_file "$patch_file" \
| patch -d $workdir $QUILT_PATCH_OPTS \
$(patch_args "$patch") \
- --no-backup-if-mismatch -E \
+ --no-backup-if-mismatch -E -f \
>/dev/null 2>/dev/null
then
if ! [ -e "$QUILT_PC/$patch" ]