Do a git update before doing rev-parse

This commit is contained in:
Eelco Dolstra 2015-12-02 11:42:49 +01:00
parent 97b39b07dc
commit 5fd290852c

View file

@ -44,6 +44,7 @@ fi
# Figure out the Git revision from which this release was
# built. FIXME: get this from Hydra directly.
git remote update nixpkgs >&2
shortRev=$(echo "$release" | sed 's/.*\.//')
rev=$(git rev-parse "$shortRev")
echo "revision is $rev" >&2
@ -119,7 +120,6 @@ cd "$channelsDir"
rsync -avR . hydra-mirror@nixos.org:"$channelsDir" --delete >&2
# Update the nixpkgs-channels repo.
git remote update nixpkgs >&2
git push nixpkgs-channels "$rev:refs/heads/$channelName" >&2
echo "$releaseDir"