nixpkgs/lib
Franz Pletz 46773a15b3
nixos/version: fix case where .git is a symlink
Before c9214c394b and
9d396d2e42 if .git is symlink the version
would gracefully default to no git revision. With those changes an
exception is thrown instead.

This introduces a new function `pathIsGitRepo` that checks if
`commitIdFromGitRepo` fails without error so we don't have to
reimplement this logic again and can fail gracefully.
2020-01-20 00:53:44 +01:00
..
systems Merge remote-tracking branch 'origin/master' into ios-with-xcode-11 2020-01-03 15:34:20 -05:00
tests Merge pull request #75539 from Gabriel439/gabriel/renderOptions 2020-01-14 12:04:05 +01:00
asserts.nix
attrsets.nix lib: fix typo in 'zipAttrsWith' documentation 2019-09-11 19:54:36 +02:00
cli.nix Factor out a toGNUCommandLine utility 2020-01-05 13:03:00 -08:00
customisation.nix Merge pull request #67809 from Infinisil/propagate-override-args 2019-10-22 14:37:40 +02:00
debug.nix
default.nix nixos/version: fix case where .git is a symlink 2020-01-20 00:53:44 +01:00
deprecated.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
fetchers.nix
filesystem.nix
fixed-points.nix
generators.nix
kernel.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
licenses.nix licenses: refer to curl using spdx 2019-09-22 20:33:44 +00:00
lists.nix Merge master into staging-next 2019-09-06 22:46:05 +02:00
meta.nix
minver.nix
modules.nix lib/modules: Switch _module.args from attrsOf to lazyAttrsOf 2020-01-10 16:20:31 +01:00
options.nix lib/options: fix path in comment 2019-08-26 02:01:49 +02:00
sources.nix nixos/version: fix case where .git is a symlink 2020-01-20 00:53:44 +01:00
strings-with-deps.nix
strings.nix lib: Add getName to mirror getVersion 2019-11-24 16:24:50 +00:00
trivial.nix nixos/version: fix case where .git is a symlink 2020-01-20 00:53:44 +01:00
types.nix Replace short URL from #63103 with full URL. 2020-01-15 13:47:49 +00:00
versions.nix lib/versions: expose splitVersion 2019-09-26 17:42:42 +02:00
zip-int-bits.nix