From 1bd25fc0ec4bcd83afa31262b52861c4cacdead5 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Mon, 9 Mar 2015 18:15:01 -0700 Subject: MXE_GET_GITHUB_SHA: simplify regex and make the hash longer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64f3098..b932cc1 100644 --- a/Makefile +++ b/Makefile @@ -119,7 +119,7 @@ MAKE_SHARED_FROM_STATIC = \ define MXE_GET_GITHUB_SHA $(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/heads/$(strip $(2))' | \ - $(SED) -n 's#.*"sha": "\([^<]\{7\}\)[^<]\{3\}.*#\1#p' | \ + $(SED) -n 's#.*"sha": "\([^"]\{10\}\).*#\1#p' | \ head -1 endef -- cgit v0.12