Remove "-r" option on invocations of git-diff-index
[stgit] / stgit / commands / imprt.py
index 96ba0a1..14bf0b6 100644 (file)
@@ -42,7 +42,7 @@ options = [make_option('-m', '--mail',
                        action = 'store_true'),
            make_option('-n', '--name',
                        help = 'use NAME as the patch name'),
-           make_option('--base',
+           make_option('-b', '--base',
                        help = 'use BASE instead of HEAD for file importing'),
            make_option('-e', '--edit',
                        help = 'invoke an editor for the patch description',
@@ -220,7 +220,7 @@ def func(parser, options, args):
     sys.stdout.flush()
 
     if options.base:
-        git.apply_patch(filename, git.rev_parse(options.base))
+        git.apply_patch(filename, git_id(options.base))
     else:
         git.apply_patch(filename)