Skip to content

Commit

Permalink
try --no-lock-index for Git
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanzilla committed Sep 17, 2016
1 parent df7beff commit bb312ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/clink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ end
-- @return {bool}
---
function get_git_status()
for line in io.popen("git status --porcelain 2>nul"):lines() do
for line in io.popen("git status --no-lock-index --porcelain 2>nul"):lines() do
return false
end
return true
Expand Down

3 comments on commit bb312ad

@amcclain
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was causing change detection to fail on my machine with a download of the latest development branch. Is --no-lock-index a standard option for git status? I could not find any reference to it, and when I attempt to run using the bundled vendor git it fails with an unknown option error.

Thanks much for any info.

@Stanzilla
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amcclain yeah you'd have to use a recent Git version for that (git-for-windows/git@e113139)

@amcclain
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - thanks very much for the reply. I had grabbed the latest development branch build, which looks like it has the -no-lock-index update but not the git upgrade. Will keep an eye out for the next merge/build to take the latest git and this improvement. 👍

Please sign in to comment.