diff options
author | Pete Wyckoff <pw@padd.com> | 2011-12-24 21:07:32 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-27 10:19:30 -0800 |
commit | ef86890ce5f01e6b5716ddcc11daddcd4e297157 (patch) | |
tree | dcc37a98127e7afd658c7aadb4d45f2804969386 /contrib/fast-import | |
parent | git-p4: introduce asciidoc documentation (diff) | |
download | tgif-ef86890ce5f01e6b5716ddcc11daddcd4e297157.tar.xz |
git-p4: clone does not use --git-dir
Complain if --git-dir is given during a clone. It has no
effect. Only --destination and --bare can change where the newly
cloned git dir will be.
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/fast-import')
-rwxr-xr-x | contrib/fast-import/git-p4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 594980302b..dafc4a2c82 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -2335,7 +2335,8 @@ def main(): args = sys.argv[2:] if len(options) > 0: - options.append(optparse.make_option("--git-dir", dest="gitdir")) + if cmd.needsGit: + options.append(optparse.make_option("--git-dir", dest="gitdir")) parser = optparse.OptionParser(cmd.usage.replace("%prog", "%prog " + cmdName), options, |