Page MenuHomePhabricator

D7592.id17134.diff
No OneTemporary

D7592.id17134.diff

Index: src/applications/differential/DifferentialGetWorkingCopy.php
===================================================================
--- src/applications/differential/DifferentialGetWorkingCopy.php
+++ src/applications/differential/DifferentialGetWorkingCopy.php
@@ -18,15 +18,22 @@
$path = rtrim($origin_path, '/');
$path = $path . '__workspace';
+ $workspace = null;
if (!Filesystem::pathExists($path)) {
$repo->execxLocalCommand(
'clone -- file://%s %s',
$origin_path,
$path);
+
+ $workspace = new ArcanistGitAPI($path);
+ if (!$repo->isWorkingCopyBare()) {
+ $workspace->execxLocal(
+ 'remote set-url origin %s',
+ $repo->getRemoteURI());
+ }
}
- $workspace = new ArcanistGitAPI($path);
$workspace->execxLocal('clean -f -d');
$workspace->execxLocal('checkout master');
$workspace->execxLocal('fetch');

File Metadata

Mime Type
text/plain
Expires
Oct 30 2025, 10:26 PM (8 w, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8749049
Default Alt Text
D7592.id17134.diff (930 B)

Event Timeline