X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;fp=GitRepo.vala;h=fa5ce1a7c17332072d2ae81d70e7035a78f57913;hp=b9f4d37528b15a96ac94c3fcc5e9a70dc6ce6e68;hb=ce0a9ed7cbde853bab1ba31d0a14fd0a73d7578c;hpb=cf448ce21966e7b9fe9ca9e8894a4d53871aead4 diff --git a/GitRepo.vala b/GitRepo.vala index b9f4d375..fa5ce1a7 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -29,10 +29,12 @@ public class GitRepo : Object public GitBranch _currentBranch; public GitBranch getCurrentBranch() { if (this._currentBranch == null) { + Posix.usleep(100); // try and slow down branch loading this.loadBranches(); + } 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; }