projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
afaf256
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 03:54:32 +0000
(11:54 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 03:54:32 +0000
(11:54 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
c037454
..
d0bbe5d
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-257,16
+257,14
@@
public class GitRepo : Object
return;
}
return;
}
- // otherwise see if unmanaged is set to disable it..
- return !FileUtils.test(this.gitdir + "/.gitlive-unmanaged" , FileTest.EXISTS);
-
-
- if (val) {
- FileUtils.set_contents(this.gitdir + "/.gitlive-enable-auto-branch" , "x");
+
+ if (val) {
+ FileUtils.remove(this.gitdir + "/.gitlive-unmanaged" );
} else {
} else {
- // it exists...
- FileUtils.remove(this.gitdir + "/.gitlive-enable-auto-branch" );
+ FileUtils.set_contents(this.gitdir + "/.gitlive-unmanaged" , "x");
+
}
}
+
}
public bool is_autopush ()
}
public bool is_autopush ()