From 3c18dea8da6d8647cf35373369fceec8e4ae145c Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 18 Jun 2015 21:26:33 +0200 Subject: irc-announce: id=newrev & id2=oldrev --- lib/git.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/git.nix b/lib/git.nix index b28d89413..706a2264a 100644 --- a/lib/git.nix +++ b/lib/git.nix @@ -138,10 +138,10 @@ let # empty_tree=$(git hash-object -t tree /dev/null empty_tree=4b825dc6 - id=$(echo $oldrev | cut -b-7) - id2=$(echo $newrev | cut -b-7) - if [ $oldrev = $empty ]; then id=$empty_tree; fi - if [ $newrev = $empty ]; then id2=$empty_tree; fi + id=$(echo $newrev | cut -b-7) + id2=$(echo $oldrev | cut -b-7) + if [ $newrev = $empty ]; then id=$empty_tree; fi + if [ $oldrev = $empty ]; then id2=$empty_tree; fi case $receive_mode in create) -- cgit v1.2.3