From b3bdb15e47b94bdf0a4200207981166297fefb58 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 24 Aug 2021 15:23:47 -0400 Subject: [PATCH] [F] nix-git-update condition is reversed --- scripts/bashrc-nix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bashrc-nix.sh b/scripts/bashrc-nix.sh index cc4ebf5..b0c5b9e 100644 --- a/scripts/bashrc-nix.sh +++ b/scripts/bashrc-nix.sh @@ -12,7 +12,8 @@ nix-git-update() { update-nix-fetchgit *.nix # If there are changes after updating - if git diff-index --quiet HEAD --; then + if ! git diff-index --quiet HEAD --; then + # Has changes rebuild-gc git add *.nix git commit -m "[U] Update fetchgit refs"