[csw-devel] SF.net SVN: gar:[17338] csw/mgar/gar/v2/gar.lib.mk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Mar 8 18:06:38 CET 2012


Revision: 17338
          http://gar.svn.sourceforge.net/gar/?rev=17338&view=rev
Author:   bdwalton
Date:     2012-03-08 17:06:38 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
gar/v2: do not rely on --remote parameter to git archive when extracting from an upstream git repo; cd to the bare repo and run command from there

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.lib.mk

Modified: csw/mgar/gar/v2/gar.lib.mk
===================================================================
--- csw/mgar/gar/v2/gar.lib.mk	2012-03-08 15:46:42 UTC (rev 17337)
+++ csw/mgar/gar/v2/gar.lib.mk	2012-03-08 17:06:38 UTC (rev 17338)
@@ -606,7 +606,7 @@
 # to supply an alternate target at their discretion
 git-extract-%:
 	@echo " ===> Extracting Git Repo $(DOWNLOADDIR)/$* (Treeish: $(call GIT_TREEISH,$*))"
-	git --bare archive --prefix=$(NAME)-$(VERSION)/ --remote=file://$(abspath $(DOWNLOADDIR))/$*/ $(call GIT_TREEISH,$*) | gtar -xf - -C $(EXTRACTDIR)
+	( cd $(abspath $(DOWNLOADDIR))/$*/; git --bare archive --prefix=$(NAME)-$(VERSION)/ $(call GIT_TREEISH,$*)) | gtar -xf - -C $(EXTRACTDIR)
 	@$(MAKECOOKIE)
 
 # rule to extract files with unzip

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list