summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-10-21 17:56:42 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-10-21 17:56:42 +0000
commit12b6a06eecd7a7602614f64d149c1a2840719ae3 (patch)
tree48e7ddf2da390dd80bab8ba8fffce76d5a237f17
parent88ea567a3136382a2690815315c2e4a0cdb9f1c6 (diff)
downloadquilt-12b6a06eecd7a7602614f64d149c1a2840719ae3.tar.gz
Also copy the patch file, or else `quilt diff' won't work.
-rw-r--r--quilt/fork.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/quilt/fork.in b/quilt/fork.in
index 462676f..1eeb51d 100644
--- a/quilt/fork.in
+++ b/quilt/fork.in
@@ -26,8 +26,7 @@ usage()
Fork the topmost patch. If new_name is missing, the name of the
forked patch will be the current patch name, followed by \"-2\". If the
If the patch name already ends in a dash-and-number, the number is
-further incremented (e.g., patch.diff, patch-2.diff). The actual patch
-is only created when \"quilt refresh\" is run.
+further incremented (e.g., patch.diff, patch-2.diff).
"
exit 0
else
@@ -99,7 +98,8 @@ fi
if ! rename_in_db "$top" "$patch" || \
! rename_in_series "$top" "$patch_file" || \
- ! mv ".pc/$top" $pc_dir
+ ! mv ".pc/$top" $pc_dir || \
+ ! cp -p "$top_file_name" "$(patch_file_name $patch)"
then
echo $"Fork of $top_file_name to $patch_file failed" >&2
exit 1