Fix #6188
Add trailing -- to git reset when performing a branch reset to remove ambiguity between revision and file
This commit is contained in:
parent
a1a2b022e7
commit
2d89e48bbc
@ -746,7 +746,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
||||
end
|
||||
|
||||
system_command! "git",
|
||||
args: ["reset", "--hard", *ref],
|
||||
args: ["reset", "--hard", *ref, "--"],
|
||||
chdir: cached_location
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user