Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15359120
D14347.id34631.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14347.id34631.diff
View Options
diff --git a/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
--- a/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
+++ b/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
@@ -431,17 +431,28 @@
$src_ref,
$src_ref);
- $command = csprintf(
- 'git merge --no-stat --squash -- %R',
+ // NOTE: This can never actually generate a commit because we pass
+ // "--squash", but git sometimes runs code to check that a username and
+ // email are configured anyway.
+ $real_command = csprintf(
+ 'git -c user.name=%s -c user.email=%s merge --no-stat --squash -- %R',
+ 'drydock',
+ 'drydock@phabricator',
+ $src_ref);
+
+ // Show the user a simplified command if the operation fails and we need to
+ // report an error.
+ $show_command = csprintf(
+ 'git merge --squash -- %R',
$src_ref);
try {
- $interface->execx('%C', $command);
+ $interface->execx('%C', $real_command);
} catch (CommandException $ex) {
$this->setWorkingCopyVCSErrorFromCommandException(
$lease,
self::PHASE_SQUASHMERGE,
- $command,
+ $show_command,
$ex);
throw $ex;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 7:41 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7547772
Default Alt Text
D14347.id34631.diff (1 KB)
Attached To
Mode
D14347: Provide a username and email when running `git merge --squash`
Attached
Detach File
Event Timeline
Log In to Comment