pombreda / vcscommand

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

Problem using VCSCommand with Git #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried using VCSCommand with Git. I edited two files in Vim and typed
:VCSAdd both times. Then, after changing and saving the second file, I
wrote :VCSCommit, typed a commit message, and it said "wrong syntax".

The particular line in my .vimrc:
let VCSCommandGitExec='C:\Program Files\Git\bin\git.exe'

Any ideas?

Original issue reported on code.google.com by Jens.K.L...@gmail.com on 29 Jan 2010 at 6:24

GoogleCodeExporter commented 9 years ago
Is "wrong syntax" the exact error message?

Original comment by bob.hies...@gmail.com on 2 Feb 2010 at 5:16

GoogleCodeExporter commented 9 years ago
To be more precise, it is:

VCSCommand: Version control command failed: Die Syntax für den Dateinamen,
Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch.

(So it obviously tries to use the wrong file name or something. The folder has a
space in it...)

Original comment by Jens.K.L...@gmail.com on 2 Feb 2010 at 5:20

GoogleCodeExporter commented 9 years ago
What OS are you using?

Original comment by bob.hies...@gmail.com on 2 Feb 2010 at 5:28

GoogleCodeExporter commented 9 years ago
Sorry, that was a dumb question.  You're using Windows.  Does the path of the 
git-
controlled file contain spaces, or just the executable path?  Are you using 
Cygwin for 
either git or vim?

Original comment by bob.hies...@gmail.com on 2 Feb 2010 at 5:31

GoogleCodeExporter commented 9 years ago
Both use spaces (although the space thingy for the git.exe should be fixed now) 
- no,
no Cygwin.

Original comment by Jens.K.L...@gmail.com on 2 Feb 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Which version of the plugin are you using?

Original comment by bob.hies...@gmail.com on 2 Feb 2010 at 5:36

GoogleCodeExporter commented 9 years ago
1.99.36

Original comment by Jens.K.L...@gmail.com on 2 Feb 2010 at 5:43

GoogleCodeExporter commented 9 years ago
Please test against v1.99.39.  The shellslash setting (or, more correctly, 
setting 
shellslash in addition to the new quoting) may have caused this issue.

Original comment by bob.hies...@gmail.com on 29 Mar 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Still something's wrong.

Let's say I edit ~/.vim/installed scripts, a plain text file which is also 
submitted
to my Git account. When finished, I type :VCSAdd, then :VCSCommit. Result:

http://i42.tinypic.com/242fpd5.png

Original comment by Jens.K.L...@gmail.com on 31 Mar 2010 at 2:34

GoogleCodeExporter commented 9 years ago
What was the output from the :VCSAdd?  It seems that the add is failing.

Does this only fail for paths with spaces?

Do other commands work on files with spaces?

Original comment by bob.hies...@gmail.com on 2 Apr 2010 at 3:51

GoogleCodeExporter commented 9 years ago
:VCSAdd says "add (filename)". How can I say if it is failed?
My git directory says that it was not updated...

Original comment by Jens.K.L...@gmail.com on 2 Apr 2010 at 6:01

GoogleCodeExporter commented 9 years ago
That looks successful.  If you run :VCSStatus on the file, does it list the 
file 
under "Changes to be committed"?

Original comment by bob.hies...@gmail.com on 17 May 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Yes, it does.

Original comment by Jens.K.L...@gmail.com on 17 May 2010 at 8:32

GoogleCodeExporter commented 9 years ago
That sounds like things are working fine, then.  I'm closing this for now.  
Thank you
for testing.

Original comment by bob.hies...@gmail.com on 17 May 2010 at 10:50

GoogleCodeExporter commented 9 years ago
Tested: VCSCommit works now, too. Thank you for the plug-in. :)

Original comment by Jens.K.L...@gmail.com on 17 May 2010 at 10:54