Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1849d2

Browse files
committed
fallback unshallow to git split
1 parent a5046fe commit d1849d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pipeline:
9292
- /drone/env/gitsplit.ssh:/root/.ssh/
9393
commands:
9494
# have to fetch remote branches
95-
- git fetch --prune --unshallow || true
95+
- git fetch --prune --unshallow || git fetch --prune
9696
- gitsplit
9797
```
9898
@@ -125,7 +125,7 @@ install:
125125
# update local repository. Because travis fetch a shallow copy
126126
- git config remote.origin.fetch "+refs/*:refs/*"
127127
- git config remote.origin.mirror true
128-
- git fetch --prune --unshallow || true
128+
- git fetch --prune --unshallow || git fetch --prune
129129

130130
script:
131131
- docker run --rm -t -e GH_TOKEN -v /cache/gitsplit:/cache/gitsplit -v ${PWD}:/srv jderusse/gitsplit gitsplit --ref "${TRAVIS_BRANCH}"
@@ -172,6 +172,6 @@ split:
172172
script:
173173
- git config remote.origin.fetch "+refs/*:refs/*"
174174
- git config remote.origin.mirror true
175-
- git fetch --prune --unshallow || true
175+
- git fetch --prune --unshallow || git fetch --prune
176176
- gitsplit --ref "${CI_COMMIT_REF_NAME}"
177177
```

0 commit comments

Comments
 (0)