From f44736bb6c2f6051141bafd7fd88bdea08a02790 Mon Sep 17 00:00:00 2001
From: tv <tv@shackspace.de>
Date: Sun, 28 Jun 2015 14:45:23 +0200
Subject: fetchgit: is_up_to_date requires rev to be a sha1

---
 bin/fetchgit | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/fetchgit b/bin/fetchgit
index 09cc0e202..ffd7e7426 100755
--- a/bin/fetchgit
+++ b/bin/fetchgit
@@ -35,7 +35,8 @@ work_git() {
 is_up_to_date() {
   test -d "$cache_dir" &&
   test -d "$work_dir" &&
-  test "$(work_git rev-parse HEAD)" = "$(cache_git rev-parse "$git_rev")"
+  test "$(cache_git rev-parse "$git_rev")" = "$git_rev" &&
+  test "$(work_git rev-parse HEAD)" = "$git_rev"
 }
 
 # Notice how the remote name "origin" has been chosen arbitrarily.
-- 
cgit v1.2.3