Bug 366062 -[progress service] Client should remove tasks when read and no longer needed.
diff --git a/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js b/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
index 968eca9..016b9d4 100644
--- a/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
+++ b/bundles/org.eclipse.orion.client.git/web/orion/git/gitCommands.js
@@ -99,6 +99,10 @@
 				sshService.getKnownHosts().then(function(knownHosts){
 					options.knownHosts = knownHosts;
 					func(options);
+					if(options.failedOperation){
+						var progressService = serviceRegistry.getService("orion.page.progress");
+						dojo.hitch(progressService, progressService.removeOperation)(options.failedOperation.Location, options.failedOperation.Id);
+					}
 				});
 			});
 		}
@@ -156,6 +160,9 @@
 			return;
 		case 403:
 			if(jsonData.JsonData && jsonData.JsonData.HostKey){
+				if(jsonData.failedOperation){
+					options.failedOperation = jsonData.failedOperation;
+				}
 				dojo.hitch(this, exports.handleKnownHostsError)(serviceRegistry, jsonData.JsonData, options, callee);
 				return;
 			}