From 31ccf04858b6a780802800e69100399f88288b36 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Sat, 11 Feb 2006 13:35:50 +0000 Subject: - quilt/scripts/patchfns.in: Fix bug in quilt_command when working in subdirectories. - Add testcase test/edit.test to catch this kind of bug. --- test/edit.test | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/edit.test (limited to 'test') diff --git a/test/edit.test b/test/edit.test new file mode 100644 index 0000000..5cc5dba --- /dev/null +++ b/test/edit.test @@ -0,0 +1,20 @@ +$ rm -rf d +$ mkdir -p d/patches d/subdir +$ cd d + +$ cat > editor +< #! /bin/sh +< echo Editing $1 +< echo foo > $1 +$ chmod +x editor +$ export EDITOR=%PWD/editor + +$ quilt new patch +> Patch patches/patch is now on top +$ cd subdir +$ quilt edit foo +> File subdir/foo added to patch ../patches/patch +> Editing foo + +$ cd ../.. +$ rm -rf d -- cgit