projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-clone: fix duplicated "master" in $GIT_DIR/remotes/origin
[git.git]
/
fetch-clone.c
diff --git
a/fetch-clone.c
b/fetch-clone.c
index
873312d
..
da1b3ff
100644
(file)
--- a/
fetch-clone.c
+++ b/
fetch-clone.c
@@
-178,10
+178,13
@@
int receive_keep_pack(int fd[2], const char *me, int quiet)
if (sz == 0)
break;
if (sz < 0) {
if (sz == 0)
break;
if (sz < 0) {
- error("error reading pack (%s)", strerror(errno));
- close(ofd);
- unlink(tmpfile);
- return -1;
+ if (errno != EINTR && errno != EAGAIN) {
+ error("error reading pack (%s)", strerror(errno));
+ close(ofd);
+ unlink(tmpfile);
+ return -1;
+ }
+ sz = 0;
}
pos = 0;
while (pos < sz) {
}
pos = 0;
while (pos < sz) {