Merge pull request #30986 from nixos-docs/remove-fetchgitrevision

fetchgitrevision: removed
This commit is contained in:
Frederik Rietdijk 2017-10-30 20:05:43 +01:00 committed by GitHub
commit cd976095fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View File

@ -1,10 +0,0 @@
runCommand: git: repository: branch:
import (runCommand "head-revision"
{ buildInputs = [ git ];
dummy = builtins.currentTime;
}
''
rev=$(git ls-remote ${repository} | grep "refs/${branch}$" | awk '{ print $1 }')
echo "[ \"$rev\" ]" > $out
echo Latest revision in ${branch} is $rev
'')

View File

@ -144,8 +144,6 @@ with pkgs;
fetchgitPrivate = callPackage ../build-support/fetchgit/private.nix { };
fetchgitrevision = import ../build-support/fetchgitrevision runCommand git;
fetchgitLocal = callPackage ../build-support/fetchgitlocal { };
fetchmtn = callPackage ../build-support/fetchmtn (config.fetchmtn or {});