Skip to content

Commit

Permalink
git putFile: support flake maximalists
Browse files Browse the repository at this point in the history
Passing the commit message as an argument causes update failures on repositories with lots of flake inputs. In some cases, the commit message is over 250,000 bytes.
  • Loading branch information
grahamc committed May 12, 2024
1 parent 87ab3c0 commit 8b5e8f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libfetchers/unix/git.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ struct GitInputScheme : InputScheme
logger->pause();
Finally restoreLogger([]() { logger->resume(); });
runProgram("git", true,
{ "-C", repoInfo.url, "--git-dir", repoInfo.gitDir, "commit", std::string(path.rel()), "-m", *commitMsg });
{ "-C", repoInfo.url, "--git-dir", repoInfo.gitDir, "commit", std::string(path.rel()), "-F", "-" },
*commitMsg);
}
}
}
Expand Down

0 comments on commit 8b5e8f4

Please sign in to comment.