From cba76d4b15d8d64114acf39c3360394fe349951b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 6 Jun 2021 21:31:23 +0200 Subject: rebuild-machines: silence git warning --- system-profiles/rebuild-machines/rebuild-machine.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system-profiles/rebuild-machines') diff --git a/system-profiles/rebuild-machines/rebuild-machine.zsh b/system-profiles/rebuild-machines/rebuild-machine.zsh index e9e1655f..6420a417 100644 --- a/system-profiles/rebuild-machines/rebuild-machine.zsh +++ b/system-profiles/rebuild-machines/rebuild-machine.zsh @@ -4,5 +4,7 @@ if [[ $(@coreutils@/bin/whoami) != "root" ]]; then exec @wrapperDir@/sudo -H -- @out@/bin/@scriptName@ $@ fi -export NIX_SSHOPTS="-F @sshConfig@" GIT_SSH_COMMAND="@openssh@/bin/ssh -F @sshConfig@" +export NIX_SSHOPTS="-F @sshConfig@" +export GIT_SSH_COMMAND="@openssh@/bin/ssh -F @sshConfig@" +export GIT_CONFIG_COUNT=0 GIT_CONFIG_KEY_0="init.defaultBranch" GIT_CONFIG_VALUE_0=main exec -- @nixosRebuild@/bin/nixos-rebuild --refresh --flake '@flake@' ${@:-switch} -- cgit v1.2.3