File: bump-libgit2

package info (click to toggle)
ruby-rugged 1.9.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,752 kB
  • sloc: ansic: 8,722; ruby: 7,473; sh: 99; makefile: 5
file content (20 lines) | stat: -rwxr-xr-x 319 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -e

cd "$(dirname "$0")/../vendor/libgit2"

git fetch origin

if [ "$#" -gt 0 ]
then
    git checkout "$1"
    LIBGIT2_SHA1="$1"
else
    git checkout origin/main
    LIBGIT2_SHA1=$(git rev-parse --verify HEAD)
fi

cd "../../"

git add vendor/libgit2
git commit -m "vendor: bump libgit2 to $LIBGIT2_SHA1"