Skip to content

Commit 300b480

Browse files
author
H. Peter Anvin
committed
Merge with master.kernel.org:/pub/scm/git/git.git
2 parents 09dea56 + 894a8a8 commit 300b480

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ PROGRAMS = \
119119
git-upload-pack$(X) git-verify-pack$(X) git-write-tree$(X) \
120120
git-update-ref$(X) $(SIMPLE_PROGRAMS)
121121

122-
# Backward compatibility -- to be removed in 0.99.8
122+
# Backward compatibility -- to be removed after 1.0
123123
PROGRAMS += git-ssh-pull$(X) git-ssh-push$(X)
124124

125125
PYMODULES = \
@@ -354,6 +354,7 @@ install: $(PROGRAMS) $(SCRIPTS)
354354
$(INSTALL) -d -m755 $(DESTDIR)$(bindir)
355355
$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
356356
$(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick
357+
sh ./cmd-rename.sh $(DESTDIR)$(bindir)
357358
$(MAKE) -C templates install
358359
$(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR)
359360
$(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR)

cmd-rename.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/sh
2-
#
3-
# This is for people who installed previous GIT by hand and would want
4-
# to remove the backward compatible links:
5-
#
6-
# ./cmd-rename.sh $bindir
7-
#
82
d="$1"
93
test -d "$d" || exit
104
while read old new
115
do
126
rm -f "$d/$old"
7+
if test -f "$d/$new"
8+
then
9+
ln -s "$new" "$d/$old" || exit
10+
fi
1311
done <<\EOF
1412
git-add-script git-add
1513
git-archimport-script git-archimport
@@ -54,7 +52,3 @@ git-update-cache git-update-index
5452
git-convert-cache git-convert-objects
5553
git-fsck-cache git-fsck-objects
5654
EOF
57-
58-
# These two are a bit more than symlinks now.
59-
# git-ssh-push git-ssh-upload
60-
# git-ssh-pull git-ssh-fetch

daemon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ static void logreport(int priority, const char *err, va_list params)
5959
write(2, buf, buflen);
6060
}
6161

62-
void logerror(const char *err, ...)
62+
static void logerror(const char *err, ...)
6363
{
6464
va_list params;
6565
va_start(params, err);
6666
logreport(LOG_ERR, err, params);
6767
va_end(params);
6868
}
6969

70-
void loginfo(const char *err, ...)
70+
static void loginfo(const char *err, ...)
7171
{
7272
va_list params;
7373
if (!verbose)

http-fetch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,11 @@ int main(int argc, char **argv)
529529
if ((ssl_cert = getenv("GIT_SSL_CERT")) != NULL) {
530530
curl_easy_setopt(curl, CURLOPT_SSLCERT, ssl_cert);
531531
}
532+
#if LIBCURL_VERSION_NUM >= 0x070902
532533
if ((ssl_key = getenv("GIT_SSL_KEY")) != NULL) {
533534
curl_easy_setopt(curl, CURLOPT_SSLKEY, ssl_key);
534535
}
536+
#endif
535537
#if LIBCURL_VERSION_NUM >= 0x070908
536538
if ((ssl_capath = getenv("GIT_SSL_CAPATH")) != NULL) {
537539
curl_easy_setopt(curl, CURLOPT_CAPATH, ssl_capath);

sha1_file.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,8 @@ void packed_object_info_detail(struct pack_entry *e,
871871
strcpy(type, "tag");
872872
break;
873873
default:
874-
die("corrupted pack file");
874+
die("corrupted pack file %s containing object of kind %d",
875+
p->pack_name, kind);
875876
}
876877
*store_size = 0; /* notyet */
877878
}
@@ -910,7 +911,8 @@ static int packed_object_info(struct pack_entry *entry,
910911
strcpy(type, "tag");
911912
break;
912913
default:
913-
die("corrupted pack file");
914+
die("corrupted pack file %s containing object of kind %d",
915+
p->pack_name, kind);
914916
}
915917
if (sizep)
916918
*sizep = size;
@@ -1010,7 +1012,7 @@ static void *unpack_entry(struct pack_entry *entry,
10101012
retval = unpack_entry_gently(entry, type, sizep);
10111013
unuse_packed_git(p);
10121014
if (!retval)
1013-
die("corrupted pack file");
1015+
die("corrupted pack file %s", p->pack_name);
10141016
return retval;
10151017
}
10161018

0 commit comments

Comments
 (0)