summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorKen Walker2012-01-16 14:05:10 (EST)
committer Szymon Brandys2012-01-16 14:05:10 (EST)
commita0d4a4a9edf4e5d33481e90ad0bdc1fcfe7c7dc8 (patch)
tree29a7b7cd99efc6ba2e52e94bfbd26705e574ebe0
parent678b7d0a8dc0671f65567741657b0f0f696336e0 (diff)
downloadorg.eclipse.orion.client-a0d4a4a9edf4e5d33481e90ad0bdc1fcfe7c7dc8.zip
org.eclipse.orion.client-a0d4a4a9edf4e5d33481e90ad0bdc1fcfe7c7dc8.tar.gz
org.eclipse.orion.client-a0d4a4a9edf4e5d33481e90ad0bdc1fcfe7c7dc8.tar.bz2
bug 368726 - New Git page shows Loading... forever when no repositories
in Workspace https://bugs.eclipse.org/bugs/show_bug.cgi?id=368726
-rw-r--r--bundles/org.eclipse.orion.client.git/web/orion/git/gitRepositoryExplorer.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.git/web/orion/git/gitRepositoryExplorer.js b/bundles/org.eclipse.orion.client.git/web/orion/git/gitRepositoryExplorer.js
index 4385e0e..b802d1d 100644
--- a/bundles/org.eclipse.orion.client.git/web/orion/git/gitRepositoryExplorer.js
+++ b/bundles/org.eclipse.orion.client.git/web/orion/git/gitRepositoryExplorer.js
@@ -112,6 +112,11 @@ exports.GitRepositoryExplorer = (function() {
this.registry.getService("orion.git.provider").getGitClone(location).then(
function(resp){
+ if (resp.Children.length === 0) {
+ progressService.setProgressMessage("");
+ return;
+ }
+
if (resp.Children.length == 1 && resp.Children[0].Type === "Clone") {
var repositories = resp.Children;