summaryrefslogtreecommitdiffstats
path: root/g-ed-it/commitDialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'g-ed-it/commitDialog.py')
-rw-r--r--g-ed-it/commitDialog.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/g-ed-it/commitDialog.py b/g-ed-it/commitDialog.py
index 683e888..4144b8e 100644
--- a/g-ed-it/commitDialog.py
+++ b/g-ed-it/commitDialog.py
@@ -49,11 +49,11 @@ class CommitDialog (object):
self.cwd = os.path.dirname(fileURI)
if allFile:
self.fileName = None
- templateMsg = subprocess.Popen(["git-status","-s"],stdout=subprocess.PIPE,cwd=self.cwd).communicate()[0]
+# templateMsg = subprocess.Popen(["git-status","-s"],stdout=subprocess.PIPE,cwd=self.cwd).communicate()[0]
else:
self.fileName = os.path.basename(fileURI)
- templateMsg = subprocess.Popen(["git-status","-s",self.fileName],stdout=subprocess.PIPE,cwd=self.cwd).communicate()[0]
- self.commit_text_box.get_buffer().set_text(templateMsg)
+# templateMsg = subprocess.Popen(["git-status","-s",self.fileName],stdout=subprocess.PIPE,cwd=self.cwd).communicate()[0]
+ self.commit_text_box.get_buffer().set_text("")
self.commit_dialog.show()
def on_cancel_button_clicked(self, close_button):
@@ -63,9 +63,9 @@ class CommitDialog (object):
commit_text_buffer = self.commit_text_box.get_buffer()
commit_text = commit_text_buffer.get_text(commit_text_buffer.get_start_iter(),commit_text_buffer.get_end_iter())
if self.fileName :
- subprocess.call(["git-commit","-m'"+commit_text+"'", self.fileName],stdout=subprocess.PIPE,cwd=self.cwd)
+ subprocess.call('git-commit -m "'+commit_text+'" '+self.fileName,stdout=subprocess.PIPE,cwd=self.cwd, shell=True)
else:
- subprocess.call(["git-commit","-m'"+commit_text+"'"],stdout=subprocess.PIPE,cwd=self.cwd)
+ subprocess.call('git-commit -m "'+commit_text+'"',stdout=subprocess.PIPE,cwd=self.cwd, shell=True)
commit_text_buffer.set_text("")
self.commit_dialog.hide()
self.plugin.fast_update_ui()