Page MenuHomePhabricator

D14194.diff
No OneTemporary

D14194.diff

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
@@ -213,7 +213,10 @@
$cmd[] = 'git reset --hard %s';
$arg[] = $commit;
} else if ($branch !== null) {
- $cmd[] = 'git reset --hard %s';
+ $cmd[] = 'git checkout %s';
+ $arg[] = $branch;
+
+ $cmd[] = 'git reset --hard origin/%s';
$arg[] = $branch;
} else {
$cmd[] = 'git reset --hard HEAD';

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 8:30 AM (4 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737544
Default Alt Text
D14194.diff (720 B)

Event Timeline