fix git commit arguments

This commit is contained in:
Jörg Thalheim 2021-02-06 11:26:07 +01:00
parent 611d5f82b5
commit 875e112a8f
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4
3 changed files with 3 additions and 11 deletions

View file

@ -26,7 +26,7 @@ nix run '(import ./release.nix {})' -c nur index nur-combined > nur-search/data/
cd nur-search
if [[ ! -z "$(git diff --exit-code)" ]]; then
git add ./data/packages.json
git commit "Nur a bot <joerg.nur-bot@thalheim.io>" -m "automatic update package.json"
git commit -m "automatic update package.json"
git pull --rebase origin master
git push origin master
nix-shell --run "make clean && make && make publish"

View file

@ -24,7 +24,7 @@ if [[ -z "$(git diff --exit-code)" ]]; then
echo "No changes to the output on this push; exiting."
else
git add --all repos.json*
git commit "Nur a bot <joerg.nur-bot@thalheim.io>" -m "automatic update"
git commit -m "automatic update"
# in case we are getting overtaken by a different job
git pull --rebase origin master
git push "https://$API_TOKEN_GITHUB@github.com/nix-community/NUR" HEAD:master

View file

@ -42,15 +42,7 @@ def commit_files(files: List[str], message: str) -> None:
cmd.extend(files)
subprocess.check_call(cmd)
if repo_changed():
subprocess.check_call(
[
"git",
"commit",
"Nur a bot <joerg.nur-bot@thalheim.io>",
"-m",
message,
]
)
subprocess.check_call(["git", "commit", "-m", message])
def commit_repo(repo: Repo, message: str, path: Path) -> Repo: