Re: A simple script to do the reverse of git-push
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 8, 2005, 22:42 UTC
- Message-ID
- <7vslxk125f.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0508082318400.2911@wgmdd8.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> BTW, if you are lazy, like me, you just pull from Junio once in a while > and do a "make test". Turns out there is a missing dependency though: > > peek-remote.o: cache.h > > which in my case lead to a git-peek-remote program which was unable to > peek any ref.
You are right. Thanks for noticing.
$ (make clean ; make ) >/dev/null 2>/dev/null
$ touch cache.h
$ make 2>&1 | grep peek-remote
cc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-peek-remote peek-remote.o libgit.a -lz -lcryptoI think recent "depend on object files" Makefile patch broke some things.
We would need something like this. --- # - pu: ls-remote: drop storing operation and add documentation. # + (working tree)
diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -172,6 +172,7 @@ init-db.o: init-db.c $(CC) -c $(CFLAGS) -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir)"' $*.c $(LIB_OBJS): $(LIB_H) +$(patsubst git-%,%.o,$(PROG)): $(LIB_H) $(DIFF_OBJS): diffcore.h $(LIB_FILE): $(LIB_OBJS)