aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/git.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-08-17 16:59:02 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-08-17 16:59:02 +0200
commitc80a74b7d52f0cf5fc5c1c7497e059ebf301f789 (patch)
tree650208d6ee5eb2e647584c97711e9f527a63f217 /src/libfetchers/git.cc
parent84cc7ad77c6faf1cda8f8a10f7c12a939b61fe35 (diff)
Don't pass --force to 'git add'
Fixes #5810.
Diffstat (limited to 'src/libfetchers/git.cc')
-rw-r--r--src/libfetchers/git.cc2
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,