mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
PR Feedback - remove depth=1 from tryFetch function
This commit is contained in:
parent
c4e548c6bd
commit
b6576e092a
2 changed files with 2 additions and 4 deletions
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* () {
|
||||
try {
|
||||
yield git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
||||
'--force',
|
||||
'--depth=1'
|
||||
'--force'
|
||||
]);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -35,8 +35,7 @@ export async function tryFetch(
|
|||
): Promise<boolean> {
|
||||
try {
|
||||
await git.fetch([`${branch}:refs/remotes/${remote}/${branch}`], remote, [
|
||||
'--force',
|
||||
'--depth=1'
|
||||
'--force'
|
||||
])
|
||||
return true
|
||||
} catch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue