From f9728ee0dbba7683ad7619a93f901b309cf25d57 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 29 Aug 2011 10:06:12 +0000 Subject: [PATCH] Fix a typo svn path=/nixpkgs/trunk/; revision=28871 --- pkgs/build-support/fetchgit/nix-prefetch-git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 7082c86a2d2a..01675ed02a78 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -210,7 +210,7 @@ else # If the hash was given, a file with that hash may already be in the # store. - if -n "$expHash"; then + if test -n "$expHash"; then finalPath=$(nix-store --print-fixed-path --recursive "$hashType" "$expHash" git-export) if ! nix-store --check-validity "$finalPath" 2> /dev/null; then finalPath= @@ -251,4 +251,4 @@ else if test -n "$PRINT_PATH"; then echo $finalPath fi -fi \ No newline at end of file +fi