mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make gitsync work with new repo structure, copying files under src/. It should fix #4999
This commit is contained in:
parent
bcee456cb1
commit
5563e8ba73
@ -296,9 +296,9 @@ if (isset($args["--minimal"])) {
|
||||
} else if (file_exists("/etc/version.lastcommit")) {
|
||||
$old_revision = trim(file_get_contents("/etc/version.lastcommit"));
|
||||
}
|
||||
$files_to_copy = strtr(shell_exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && {$GIT_BIN} diff --name-only " . escapeshellarg($old_revision)), "\n", " ");
|
||||
$files_to_copy = strtr(shell_exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && {$GIT_BIN} diff --name-only --relative=src " . escapeshellarg($old_revision)), "\n", " ");
|
||||
} else {
|
||||
$files_to_copy = '--exclude .git .';
|
||||
$files_to_copy = '-C ./src .';
|
||||
}
|
||||
|
||||
// Save new commit ID for later minimal file copies
|
||||
|
||||
Loading…
Reference in New Issue
Block a user