pombreda / vcscommand

Automatically exported from code.google.com/p/vcscommand
0 stars 0 forks source link

VCSLog and VCSDiff fail with 'ambiguous' filenames #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a file called 'config.yaml'
2. Check it into a git repository
3. Edit config.yaml in Vim
4. Use :VCSLog, or :VCSDiff (there might be other commands that fail that I
haven't tested)
5. You get this message:
VCSCommand:  Version control command failed:  fatal: ambiguous argument
'config.yaml': both rev
ision and filename  Use '--' to separate filenames from revisions
Press ENTER or type command to continue

What is the expected output? What do you see instead?
The expected output is to see the log or the diff.

I suspect that the reason is that the filename 'config.yaml' is ambiguous,
and git expects two dashes '--' after the command.

Perhaps two dashes should always be appended to the :VCSLog and :VCSDiff
commands for Git repositories?

What version of the product are you using? On what operating system?
1.99.31

Ubuntu 9.10 in Gvim and terminal Vim

Original issue reported on code.google.com by Nathan.N...@gmail.com on 30 Nov 2009 at 10:38

GoogleCodeExporter commented 9 years ago
If I run 'git log config.yaml' from the command line, I get the same result as 
above.

If I run 'git log config.yaml --' from the command line, I get the expected 
output.
Same with 'git diff'

Original comment by Nathan.N...@gmail.com on 30 Nov 2009 at 10:40

GoogleCodeExporter commented 9 years ago
Can you please try the version at:

http://vcscommand.googlecode.com/files/vcscommand-fix-ambiguity.zip

... and let me know if it fixes your issue or if you encounter other issues?

Original comment by bob.hies...@gmail.com on 8 Dec 2009 at 10:02

GoogleCodeExporter commented 9 years ago
This should be fixed in 1.99.32.

Original comment by bob.hies...@gmail.com on 7 Jan 2010 at 6:21