diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-08-17 16:59:02 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-08-17 16:59:02 +0200 |
commit | c80a74b7d52f0cf5fc5c1c7497e059ebf301f789 (patch) | |
tree | 650208d6ee5eb2e647584c97711e9f527a63f217 | |
parent | 84cc7ad77c6faf1cda8f8a10f7c12a939b61fe35 (diff) |
Don't pass --force to 'git add'
Fixes #5810.
-rw-r--r-- | src/libfetchers/git.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 7d01aaa7a..c1a21e764 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -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, |