We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f402aa commit d07a53fCopy full SHA for d07a53f
script/bump-libgit2
@@ -4,11 +4,17 @@ set -e
4
cd "$(dirname "$0")/../vendor/libgit2"
5
6
git fetch origin
7
-git checkout origin/master
8
9
-LIBGIT2_SHA1=$(git rev-parse --verify HEAD)
+if [ "$#" -gt 0 ]
+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
16
17
cd "../../"
18
19
git add vendor/libgit2
-git commit -m "Bump libgit2 to $LIBGIT2_SHA1"
20
+git commit -m "vendor: bump libgit2 to $LIBGIT2_SHA1"
vendor/libgit2
0 commit comments