Browse Source

use shallow clone for head

Waldemar Brodkorb 9 years ago
parent
commit
a334f29f7b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      mk/fetch.mk

+ 1 - 2
mk/fetch.mk

@@ -77,8 +77,7 @@ $(1):
 			;; \
 			;; \
 		  esac ;\
 		  esac ;\
 		else \
 		else \
-		  echo "Using git head"; \
-		  git clone $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
+		  git clone --depth 1 $(GITOPTS) $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION}; \
 		fi; \
 		fi; \
 		tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
 		tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
 		touch $$$${filename}.nohash; \
 		touch $$$${filename}.nohash; \