Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
author
Junio C Hamano
<gitster@pobox.com>
Sun, 24 Feb 2008 18:01:19 +0000
(10:01 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 24 Feb 2008 18:01:19 +0000
(10:01 -0800)
* maint:
Protect peel_ref fallback case from NULL parse_object result
Ensure 'make dist' compiles git-archive.exe on Cygwin
Makefile
patch
|
blob
|
history
refs.c
patch
|
blob
|
history
raw
(from parent 1:
e854864
)
diff --git
a/Makefile
b/Makefile
index d33a556ffed5c2cddb9577ea014d3c017082abb8..a055f11aa65a89489344fc9b80332c0669a2549e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1102,7
+1102,7
@@
git.spec: git.spec.in
mv $@+ $@
GIT_TARNAME=git-$(GIT_VERSION)
-dist: git.spec git-archive configure
+dist: git.spec git-archive
$(X)
configure
./git-archive --format=tar \
--prefix=$(GIT_TARNAME)/ HEAD^{tree} > $(GIT_TARNAME).tar
@mkdir -p $(GIT_TARNAME)
diff --git
a/refs.c
b/refs.c
index 67d2a502afb60050f0ce750c21ae1a42fa5cb803..fb33da111240d9a3d579dfebb05eef951fecee23 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-506,7
+506,7
@@
int peel_ref(const char *ref, unsigned char *sha1)
/* fallback - callers should not call this for unpacked refs */
o = parse_object(base);
- if (o->type == OBJ_TAG) {
+ if (o
&& o
->type == OBJ_TAG) {
o = deref_tag(o, ref, 0);
if (o) {
hashcpy(sha1, o->sha1);