mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
When updating git repositories, use --prune to prune old branches
Summary: We'll keep deleted branches around right now because Git's behavior is not to remove them without --prune. Test Plan: Ran "git fetch --all --prune" to make sure it at least ostensibly works. Reviewers: btrahan, 20after4 Reviewed By: 20after4 CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1833
This commit is contained in:
parent
ce919b0822
commit
89dac1cf19
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -38,7 +38,7 @@ final class PhabricatorRepositoryGitFetchDaemon
|
||||||
$local_path) {
|
$local_path) {
|
||||||
|
|
||||||
// This is a local command, but needs credentials.
|
// This is a local command, but needs credentials.
|
||||||
$future = $repository->getRemoteCommandFuture('fetch --all');
|
$future = $repository->getRemoteCommandFuture('fetch --all --prune');
|
||||||
$future->setCWD($local_path);
|
$future->setCWD($local_path);
|
||||||
$future->resolvex();
|
$future->resolvex();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue