projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df2cd8e
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:06:09 +0000
(12:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 04:06:09 +0000
(12:06 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
1970bc4
..
e9a2cb1
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-257,19
+257,7
@@
public class GitRepo : Object
}
public void set_autopush(bool val)
{
}
public void set_autopush(bool val)
{
-
- var cur = this.is_autopush();
- GLib.debug("SET auto push : %s <= %s", val ? "ON" : "OFF", cur ? "ON" : "OFF");
- if (cur == val) {
- return; // no change..
- }
- if (!val) {
- FileUtils.set_contents(this.gitdir + "/.gitlive-disable-autopush" , "");
- } else {
- // it exists...
- FileUtils.remove(this.gitdir + "/.gitlive-disable-autopush" );
- }
-
+ this.set_config("autopush", val ? "1" : "0");
}
}