diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 210e29193..c9f9a4b23 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -129,7 +129,7 @@ struct GitInput : Input assert(sourcePath); runProgram("git", true, - { "-C", *sourcePath, "add", "--force", "--intent-to-add", std::string(file) }); + { "-C", *sourcePath, "add", "--force", "--intent-to-add", "--", std::string(file) }); if (commitMsg) runProgram("git", true,