Changeset 786 in tailor
- Timestamp:
- 09/06/05 19:44:39 (8 years ago)
- Hash name:
- 20050906174439-4e4b6-2ae409ae098e6f3b9213a05c1b66df09ee22996c
- File:
-
- 1 edited
-
vcpx/git.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/git.py
r785 r786 12 12 __docformat__ = 'reStructuredText' 13 13 14 from shwrap import ExternalCommand, ReopenableNamedTemporaryFile 14 from shwrap import ExternalCommand, ReopenableNamedTemporaryFile, PIPE 15 15 from target import SyncronizableTargetWorkingDir, TargetInitializationFailure 16 16 from source import ChangesetApplicationFailure … … 86 86 c = ExternalCommand(cwd=self.basedir, command=cmd) 87 87 88 c.execute(env=env, input='\n'.join(logmessage))88 (out, _) = c.execute(stdout=PIPE, env=env, input='\n'.join(logmessage)) 89 89 if c.exit_status: 90 raise ChangesetApplicationFailure("%s returned status %d" % 91 (str(c), c.exit_status)) 90 if out is None or out.readline().strip() != 'nothing to commit': 91 raise ChangesetApplicationFailure("%s returned status %d" % 92 (str(c), c.exit_status)) 93 else: 94 # empty changeset, which git-core doesn't support 95 pass 92 96 93 97 def _removePathnames(self, names):
Note: See TracChangeset
for help on using the changeset viewer.
