aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-08-17 17:43:43 +0200
committerGitHub <noreply@github.com>2022-08-17 17:43:43 +0200
commit7aa36ae79673d89e120a97a3c6fd9fbb46ea9da1 (patch)
tree650208d6ee5eb2e647584c97711e9f527a63f217
parent84cc7ad77c6faf1cda8f8a10f7c12a939b61fe35 (diff)
parentc80a74b7d52f0cf5fc5c1c7497e059ebf301f789 (diff)
Merge pull request #6917 from edolstra/no-force
Don't pass --force to 'git add'
-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,