diff --git a/README.org b/README.org index b896653..3c6c35d 100644 --- a/README.org +++ b/README.org @@ -1295,7 +1295,7 @@ let # Fix any corruptions in the local copy. myGitFix = pkgs.writeShellScriptBin "git-fix" '' if [ -d .git/objects/ ]; then - find ./git/objects/ -type f -empty | xargs rm -f + find .git/objects/ -type f -empty | xargs rm -f git fetch -p git fsck --full fi diff --git a/modules/git.nix b/modules/git.nix index 49d140a..32bf80f 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -5,7 +5,7 @@ let # Fix any corruptions in the local copy. myGitFix = pkgs.writeShellScriptBin "git-fix" '' if [ -d .git/objects/ ]; then - find ./git/objects/ -type f -empty | xargs rm -f + find .git/objects/ -type f -empty | xargs rm -f git fetch -p git fsck --full fi