docs: function(data) {
  				commitCallback(data).then(function() {
  					serviceRegistry.getService("orion.git.provider").getGitBranch(data.items.Clone.BranchLocation).then( //$NON-NLS-0$
  							function(resp) { 
  								var branches = resp.Children;
  								var currentBranch;
  								for (var i = 0; i < branches.length; i++) {
  									if (branches[i].Current) {
  										currentBranch = branches[i];
  										break;
  									}
  								}
  								//Stripping additional info
  								data.command = undefined;
  								data.targetBranch = undefined;
  								data.parameters = undefined;
  								
  								data.items.LocalBranch = currentBranch;
  								data.items.Remote = currentBranch.RemoteLocation[0].Children[0];
  								
  								pushCallback(data).then(function() {
  									refresh();
  								});
  							},
  							function(err) {
  								displayErrorOnStatus(err);
  								refresh();
  							});
  				},
  				function(err) {
  					displayErrorOnStatus(err);
  				});
  			}