projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uncommited changes synced
[gitlive]
/
GitRepo.vala
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
9cb29f6
..
fa5ce1a
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-29,10
+29,12
@@
public class GitRepo : Object
public GitBranch _currentBranch;
public GitBranch getCurrentBranch() {
if (this._currentBranch == null) {
public GitBranch _currentBranch;
public GitBranch getCurrentBranch() {
if (this._currentBranch == null) {
+ Posix.usleep(100); // try and slow down branch loading
this.loadBranches();
this.loadBranches();
+
}
if (this._currentBranch == null) {
}
if (this._currentBranch == null) {
- GLib.error("could not work out current branch?
"
);
+ GLib.error("could not work out current branch?
: %s ",this.git_working_dir
);
}
return this._currentBranch;
}
}
return this._currentBranch;
}
@@
-674,7
+676,7
@@
public class GitRepo : Object
}
}
if (end == "") {
}
}
if (end == "") {
- var last = lines
[lines.length-1]
;
+ var last = lines
.length > 0 ? lines[lines.length-1] : ""
;
end = last.split(" ")[1];
}
end = last.split(" ")[1];
}