@matheusbsbs / matheus-bagliano / commits / a2239b79e5
Fork 0

GIT v0.99.8d

Contains the following changes since v0.99.8c. Johannes Schindelin: Teach git-status about spaces in file names also on MacOSX t5400-send-pack relies on a working cpio Jonas Fonseca: git.sh: quote all paths Junio C Hamano: Also force LC_ALL in test scripts. OpenBSD needs the strcasestr replacement. git-check-ref-format: reject funny ref names. Refuse to create funny refs in clone-pack, git-fetch and receive-pack. Ignore funny refname sent from remote Introduce notation "ref^{type}". Martin Langhoff: cvsimport: don't pass --cvs-direct if user options contradict us Ralf Baechle: rsh.c: typo fix Note that "funny ref" bits are not strictly fixes but rather backport from the "master" branch. They will prevent refs and heads with funny names from being created. In addition, what is in the master branch will start feeding the clients unwrapped tag information to help Martin's findtags and possibly later Cogito. These backported "funny ref" changes are to prevent clients on the "maint" branch from getting confused when talking with newer git-upload-pack and when reading from info/refs file prepared with newer git-update-server-info. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Oct 15, 2005 at 17:30 UTC a2239b79e554bab92abe47d8568cbbfe5c77ce85
5 files changed +18 -3
Makefile
+1 -1
@@ -48,7 +48,7 @@
48
49 # DEFINES += -DUSE_STDEV
50
51 -GIT_VERSION = 0.99.8c
51 +GIT_VERSION = 0.99.8d
52
53 CFLAGS = -g -O2 -Wall
54 ALL_CFLAGS = $(CFLAGS) $(PLATFORM_DEFINES) $(DEFINES)
connect.c
+1
@@ -1,6 +1,7 @@
1 #include "cache.h"
2 #include "pkt-line.h"
3 #include "quote.h"
4 +#include "refs.h"
5 #include <sys/wait.h>
6 #include <sys/socket.h>
7 #include <netinet/in.h>
debian/changelog
+6
@@ -1,3 +1,9 @@
1 +git-core (0.99.8d-0) unstable; urgency=low
2 +
3 + * GIT 0.99.8d
4 +
5 + -- Junio C Hamano <junkio@cox.net> Sat, 15 Oct 2005 17:22:58 -0700
6 +
7 git-core (0.99.8c-0) unstable; urgency=low
8
9 * GIT 0.99.8c
git-clone.sh
+5 -1
@@ -53,7 +53,11 @@ Perhaps git-update-server-info needs to be run there?"
53 while read sha1 refname
54 do
55 name=`expr "$refname" : 'refs/\(.*\)'` &&
56 - git-http-fetch -v -a -w "$name" "$name" "$1/" || exit 1
56 + case "$name" in
57 + *^{}) ;;
58 + *)
59 + git-http-fetch -v -a -w "$name" "$name" "$1/" || exit 1 ;;
60 + esac
61 done <"$clone_tmp/refs"
62 rm -fr "$clone_tmp"
63 }
git-fetch.sh
+5 -1
@@ -170,7 +170,11 @@ esac
170 reflist=$(get_remote_refs_for_fetch "$@")
171 if test "$tags"
172 then
173 - taglist=$(git-ls-remote --tags "$remote" | awk '{ print "."$2":"$2 }')
173 + taglist=$(git-ls-remote --tags "$remote" |
174 + sed -e '
175 + /\^{}$/d
176 + s/^[^ ]* //
177 + s/.*/&:&/')
178 if test "$#" -gt 1
179 then
180 # remote URL plus explicit refspecs; we need to merge them.