Browse Source

Merge fixes up to GIT 1.0.6

maint
Junio C Hamano 19 years ago
parent
commit
58e3fb40f7
  1. 7
      copy.c
  2. 2
      git-fetch.sh
  3. 2
      t/t5300-pack-object.sh
  4. 2
      t/t6001-rev-list-merge-order.sh
  5. 2
      t/t6003-rev-list-topo-order.sh

7
copy.c

@ -22,13 +22,16 @@ int copy_fd(int ifd, int ofd)
buf += written; buf += written;
len -= written; len -= written;
} }
else if (!written) else if (!written) {
close(ifd);
return error("copy-fd: write returned 0"); return error("copy-fd: write returned 0");
else } else {
close(ifd);
return error("copy-fd: write returned %s", return error("copy-fd: write returned %s",
strerror(errno)); strerror(errno));
} }
} }
}
close(ifd); close(ifd);
return 0; return 0;
} }

2
git-fetch.sh

@ -192,7 +192,7 @@ then
sed -e ' sed -e '
/\^/d /\^/d
s/^[^ ]* // s/^[^ ]* //
s/.*/&:&/') s/.*/.&:&/')
if test "$#" -gt 1 if test "$#" -gt 1
then then
# remote URL plus explicit refspecs; we need to merge them. # remote URL plus explicit refspecs; we need to merge them.

2
t/t5300-pack-object.sh

@ -168,7 +168,7 @@ test_expect_success \


: sum of the index file itself && : sum of the index file itself &&
l=`wc -c <test-3.idx` && l=`wc -c <test-3.idx` &&
l=`expr "$l" - 20` && l=`expr $l - 20` &&
cp test-1-${packname_1}.pack test-3.pack && cp test-1-${packname_1}.pack test-3.pack &&
dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l && dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
if git-verify-pack test-3.pack if git-verify-pack test-3.pack

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

@ -110,7 +110,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2


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


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



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

@ -79,7 +79,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2


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


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



Loading…
Cancel
Save