aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Walker2012-01-16 14:05:10 (EST)
committerSzymon Brandys2012-01-16 14:05:10 (EST)
commitb82909aa425071c8d737c17880b9d63d73a8d97e (patch)
tree29a7b7cd99efc6ba2e52e94bfbd26705e574ebe0
parent387e9923ff952e88fdd526175504f4d28ec0a3ff (diff)
downloadorg.eclipse.orion.client-b82909aa425071c8d737c17880b9d63d73a8d97e.zip
org.eclipse.orion.client-b82909aa425071c8d737c17880b9d63d73a8d97e.tar.gz
org.eclipse.orion.client-b82909aa425071c8d737c17880b9d63d73a8d97e.tar.bz2
bug 368726 - New Git page shows Loading... forever when no repositoriesv20120116-1905
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;