mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Remove "--allow-empty-message"
Summary: @alex has git 1.7.0.4 which doesn't have this flag. We don't actually need it: we always provide a commit message when calling this method. Remove the flag for compatibility, leaving a note in case we bump into this in the future. Test Plan: N/A Reviewers: btrahan, vrana, alex Reviewed By: alex CC: aran Differential Revision: https://secure.phabricator.com/D5926
This commit is contained in:
parent
3116d3656a
commit
592172c775
1 changed files with 5 additions and 1 deletions
|
@ -531,8 +531,12 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
|
|||
public function doCommit($message) {
|
||||
$tmp_file = new TempFile();
|
||||
Filesystem::writeFile($tmp_file, $message);
|
||||
|
||||
// NOTE: "--allow-empty-message" was introduced some time after 1.7.0.4,
|
||||
// so we do not provide it and thus require a message.
|
||||
|
||||
$this->execxLocal(
|
||||
'commit --allow-empty-message -F %s',
|
||||
'commit -F %s',
|
||||
$tmp_file);
|
||||
|
||||
$this->reloadWorkingCopy();
|
||||
|
|
Loading…
Reference in a new issue