Skip to content

Commit 17dff84

Browse files
author
Junio C Hamano
committed
GIT 1.0.6
Signed-off-by: Junio C Hamano <junkio@cox.net>
2 parents e5f5219 + 36cd2cc commit 17dff84

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ all:
5555
# Define USE_STDEV below if you want git to care about the underlying device
5656
# change being considered an inode change from the update-cache perspective.
5757

58-
GIT_VERSION = 1.0.5
58+
GIT_VERSION = 1.0.6
5959

6060
# CFLAGS and LDFLAGS are for the users to override from the command line.
6161

copy.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ int copy_fd(int ifd, int ofd)
2222
buf += written;
2323
len -= written;
2424
}
25-
else if (!written)
25+
else if (!written) {
26+
close(ifd);
2627
return error("copy-fd: write returned 0");
27-
else
28+
} else {
29+
close(ifd);
2830
return error("copy-fd: write returned %s",
2931
strerror(errno));
32+
}
3033
}
3134
}
3235
close(ifd);

git-fetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ then
192192
sed -e '
193193
/\^/d
194194
s/^[^ ]* //
195-
s/.*/&:&/')
195+
s/.*/.&:&/')
196196
if test "$#" -gt 1
197197
then
198198
# remote URL plus explicit refspecs; we need to merge them.

t/t5300-pack-object.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ test_expect_success \
168168
169169
: sum of the index file itself &&
170170
l=`wc -c <test-3.idx` &&
171-
l=`expr "$l" - 20` &&
171+
l=`expr $l - 20` &&
172172
cp test-1-${packname_1}.pack test-3.pack &&
173173
dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
174174
if git-verify-pack test-3.pack

t/t6001-rev-list-merge-order.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2
110110

111111
git-update-ref HEAD $(tag l5)
112112

113-
test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
113+
test_output_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -d \" \"' <<EOF
114114
19
115115
EOF
116116

t/t6003-rev-list-topo-order.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2
7979

8080
git-update-ref HEAD $(tag l5)
8181

82-
test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
82+
test_output_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -d \" \"' <<EOF
8383
19
8484
EOF
8585

0 commit comments

Comments
 (0)