Skip to content

Commit d07a53f

Browse files
FnControlOptioncarlosmn
authored andcommitted
vendor: bump libgit2 to v1.3.0
1 parent 6f402aa commit d07a53f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

script/bump-libgit2

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ set -e
44
cd "$(dirname "$0")/../vendor/libgit2"
55

66
git fetch origin
7-
git checkout origin/master
87

9-
LIBGIT2_SHA1=$(git rev-parse --verify HEAD)
8+
if [ "$#" -gt 0 ]
9+
then
10+
git checkout "$1"
11+
LIBGIT2_SHA1="$1"
12+
else
13+
git checkout origin/main
14+
LIBGIT2_SHA1=$(git rev-parse --verify HEAD)
15+
fi
1016

1117
cd "../../"
1218

1319
git add vendor/libgit2
14-
git commit -m "Bump libgit2 to $LIBGIT2_SHA1"
20+
git commit -m "vendor: bump libgit2 to $LIBGIT2_SHA1"

vendor/libgit2

Submodule libgit2 updated 102 files

0 commit comments

Comments
 (0)