Add trailing -- to git reset when performing a branch reset to remove
ambiguity between revision and file
This commit is contained in:
Joe George 2019-05-31 08:58:17 -04:00
parent a1a2b022e7
commit 2d89e48bbc
No known key found for this signature in database
GPG Key ID: 96FBD21DAF355915

View File

@ -746,7 +746,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
end
system_command! "git",
args: ["reset", "--hard", *ref],
args: ["reset", "--hard", *ref, "--"],
chdir: cached_location
end