# [PATCH] git-quiltimport.sh fix --patches handling

1 messages from 2007-11-12 to 2007-11-12. Participants: Andy Whitcroft.
Thread: https://gitlist.dev/t/10826

## Andy Whitcroft, 2007-11-12 12:07

Subject: [PATCH] git-quiltimport.sh fix --patches handling
Message-ID: <20071112120739.GH301@shadowen.org>
URL: https://gitlist.dev/e/20071112120739.GH301%40shadowen.org

```
When converting git-quiltimport.sh to the new git-rev-part --parseopt
system, the handling of --patches was broken.  We inadvertantly always
attempt to use '--patches' as the value.

This was introduced in the following commit:

    commit e01fbf1a8f185bf6722e828286862a4122269ef7
    Author: Pierre Habouzit <madcoder@debian.org>
    Date:   Sun Nov 4 11:31:01 2007 +0100

        Migrate git-quiltimport.sh to use git-rev-parse --parseopt

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
---
 git-quiltimport.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-quiltimport.sh b/git-quiltimport.sh
index 56c9569..6b0c4d2 100755
--- a/git-quiltimport.sh
+++ b/git-quiltimport.sh
@@ -23,8 +23,8 @@ do
 		dry_run=1
 		;;
 	--patches)
-		QUILT_PATCHES="$1"
 		shift
+		QUILT_PATCHES="$1"
 		;;
 	--)
 		shift

```
