diff options
author | Matthieu Gautier <mgautier@fedoraproject.org> | 2009-05-04 21:11:54 +0200 |
---|---|---|
committer | Matthieu Gautier <mgautier@fedoraproject.org> | 2009-05-04 21:11:54 +0200 |
commit | 70b12fe9f6918128b9cffc126ccbe8e0eb61ef35 (patch) | |
tree | 7144de68fdfe7472da995df8b96bb09a5e194106 /g-ed-it/commitDialog.py | |
parent | bd5dfa965466f89937d97294ac4e06d3f8b3b587 (diff) | |
parent | 5bc39fc9f68fe44a42f7fb4fd2a9845931337e49 (diff) | |
download | g-ed-it-70b12fe9f6918128b9cffc126ccbe8e0eb61ef35.tar.gz g-ed-it-70b12fe9f6918128b9cffc126ccbe8e0eb61ef35.tar.xz g-ed-it-70b12fe9f6918128b9cffc126ccbe8e0eb61ef35.zip |
Merge branch 'master' of fedorapeople.org:public_git/g-ed-it into fedorapeople
Conflicts:
g-ed-it/gitAction.py
Diffstat (limited to 'g-ed-it/commitDialog.py')
-rw-r--r-- | g-ed-it/commitDialog.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/g-ed-it/commitDialog.py b/g-ed-it/commitDialog.py index 683e888..668a5c0 100644 --- a/g-ed-it/commitDialog.py +++ b/g-ed-it/commitDialog.py @@ -49,11 +49,9 @@ 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] 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) + self.commit_text_box.get_buffer().set_text("") self.commit_dialog.show() def on_cancel_button_clicked(self, close_button): @@ -63,9 +61,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() |