projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f77c352
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 14 Dec 2018 04:05:33 +0000
(12:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 14 Dec 2018 04:05:33 +0000
(12:05 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
704bae0
..
813d891
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-186,6
+186,10
@@
public class GitRepo : Object
{
// 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.
+
+ }
return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS);