Merge pull request #6917 from edolstra/no-force

Don't pass --force to 'git add'
This commit is contained in:
Eelco Dolstra 2022-08-17 17:43:43 +02:00 committed by GitHub
commit 7aa36ae796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,7 +370,7 @@ struct GitInputScheme : InputScheme
auto gitDir = ".git";
runProgram("git", true,
{ "-C", *sourcePath, "--git-dir", gitDir, "add", "--force", "--intent-to-add", "--", std::string(file) });
{ "-C", *sourcePath, "--git-dir", gitDir, "add", "--intent-to-add", "--", std::string(file) });
if (commitMsg)
runProgram("git", true,