projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c5d48d
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 03:52:10 +0000
(11:52 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Dec 2018 03:52:10 +0000
(11:52 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
5fbdb0d
..
4ce43e5
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-193,9
+193,8
@@
public class GitRepo : Object
public bool is_managed()
{
// is it a roojs origin?
public bool is_managed()
{
// is it a roojs origin?
- var r = this.git({ "remote" , "get-url" , "--push" , "origin"});
- var uri = new Soup.URI(r);
- if (uri.get_host() != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed.
+
+ if (this.host != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed.
return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS);
}
// otherwise see if unmanaged is set to disable it..
return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS);
}
// otherwise see if unmanaged is set to disable it..