PR Feedback - remove depth=1 from tryFetch function
This commit is contained in:
parent
c4e548c6bd
commit
b6576e092a
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -68,8 +68,7 @@ function tryFetch(git, remote, branch) {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
||||||
'--force',
|
'--force'
|
||||||
'--depth=1'
|
|
||||||
]);
|
]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,8 +35,7 @@ export async function tryFetch(
|
|||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
||||||
'--force',
|
'--force'
|
||||||
'--depth=1'
|
|
||||||
])
|
])
|
||||||
return true
|
return true
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user