diff --git a/Makefile b/Makefile index a5ca5db312..4ff85fc49a 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ all: # Define USE_STDEV below if you want git to care about the underlying device # change being considered an inode change from the update-cache perspective. -GIT_VERSION = 1.0.5 +GIT_VERSION = 1.0.6 # CFLAGS and LDFLAGS are for the users to override from the command line. diff --git a/copy.c b/copy.c index 7100eedbc3..08a3d388a4 100644 --- a/copy.c +++ b/copy.c @@ -22,11 +22,14 @@ int copy_fd(int ifd, int ofd) buf += written; len -= written; } - else if (!written) + else if (!written) { + close(ifd); return error("copy-fd: write returned 0"); - else + } else { + close(ifd); return error("copy-fd: write returned %s", strerror(errno)); + } } } close(ifd); diff --git a/git-fetch.sh b/git-fetch.sh index 767ca61ca6..125bcea1b6 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -192,7 +192,7 @@ then sed -e ' /\^/d s/^[^ ]* // - s/.*/&:&/') + s/.*/.&:&/') if test "$#" -gt 1 then # remote URL plus explicit refspecs; we need to merge them. diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 1510ea9fcc..de45ac4e0f 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -168,7 +168,7 @@ test_expect_success \ : sum of the index file itself && l=`wc -c