From 4c0a93ec457afb7019272dbcbf668511a87b8525 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 10 May 2014 21:56:30 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index c8ddda28..3508f3ee 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -187,7 +187,7 @@ public class GitRepo : Object * */ - public string git(string[] args_in, ?string[] env) throws Error, SpawnError + public string git(string[] args_in, ) throws Error, SpawnError { // convert arguments. @@ -197,9 +197,9 @@ public class GitRepo : Object args += this.gitdir; args += "--no-pager"; - if (env == null) { - env = {}; - } + + + //if (this.gitdir != this.repopath) { // args += "--work-tree"; @@ -214,6 +214,7 @@ public class GitRepo : Object print( string.joinv (", ", args)); } + string[] env = {}; string home = "HOME=" + Environment.get_home_dir() ; env += home ; // do not need to set gitpath.. -- 2.39.2