projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1736e1
)
GitRepo.vala
author
Alan Knowles
<alan@akbkhome.com>
Sat, 10 May 2014 13:56:30 +0000
(21:56 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 10 May 2014 13:56:30 +0000
(21:56 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
c8ddda2
..
3508f3e
100644
(file)
--- 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.
{
// convert arguments.
@@
-197,9
+197,9
@@
public class GitRepo : Object
args += this.gitdir;
args += "--no-pager";
args += this.gitdir;
args += "--no-pager";
- if (env == null) {
- env = {};
- }
+
+
+
//if (this.gitdir != this.repopath) {
// args += "--work-tree";
//if (this.gitdir != this.repopath) {
// args += "--work-tree";
@@
-214,6
+214,7
@@
public class GitRepo : Object
print( string.joinv (", ", args));
}
print( string.joinv (", ", args));
}
+ string[] env = {};
string home = "HOME=" + Environment.get_home_dir() ;
env += home ;
// do not need to set gitpath..
string home = "HOME=" + Environment.get_home_dir() ;
env += home ;
// do not need to set gitpath..