When using git clone on a local repository the git programs try to
execve a shell, which fails since none was in the path. This change
adds bash to the path.
From b8761604fb8e9a65c1c451970c0e58f39a84a7fe Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkal...@eka.(none)>
Date: Tue, 10 Aug 2010 16:00:25 -0430
Subject: [PATCH] Fix error "cannot run git-upload-pack"
When using git clone on a local repository the git programs try to
execve a shell, which fails since none was in the path. This change
adds bash to the path.
---
modules/installer/tools/nixos-checkout.nix | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/installer/tools/nixos-checkout.nix b/modules/installer/tools/nixos-checkout.nix
index 313e8de..e8dd038 100644
--- a/modules/installer/tools/nixos-checkout.nix
+++ b/modules/installer/tools/nixos-checkout.nix
@@ -54,7 +54,7 @@ let
installer.repoTypes = mkOption {
default = {
svn = { valid = "[ -d .svn ]"; env = [ pkgs.coreutils pkgs.subversion ]; };
- git = { valid = "[ -d .git ]"; env = [ pkgs.coreutils pkgs.git pkgs.gnused /* FIXME: use full path to sed in nix-pull */ ]; };
+ git = { valid = "[ -d .git ]"; env = [ pkgs.bash pkgs.coreutils pkgs.git pkgs.gnused /* FIXME: use full path to sed in nix-pull */ ]; };
};
description = ''
Defines, for each supported version control system
--
1.7.2.1
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev