diff options
author | tv <tv@krebsco.de> | 2015-06-18 21:26:33 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-06-18 21:26:33 +0200 |
commit | 600cf8a2cf2c5ef0bb36c28ddc5cf7bd6b2c7bcd (patch) | |
tree | 7e9a4376e745eec601d7b96616b17f2d405b0b19 /lib | |
parent | c868cff63b120e034e5bd418959039ccb210ca52 (diff) |
irc-announce: id=newrev & id2=oldrev
Diffstat (limited to 'lib')
-rw-r--r-- | lib/git.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/git.nix b/lib/git.nix index b28d894..706a226 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) |