File: install-minimum-git.sh

package info (click to toggle)
datalad 1.1.5-2.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,140 kB
  • sloc: python: 69,392; sh: 1,521; makefile: 220
file content (17 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -eu

MIN_VERSION="$(perl -ne 'print $1 if /^ *GIT_MIN_VERSION = "(\S+)"$/' datalad/support/gitrepo.py)"
if test -z "$MIN_VERSION"
then
    echo "Failed to extract minimum git version" >&2
    exit 1
fi

target_dir="$PWD/git-src"
git clone https://github.com/git/git "$target_dir"
cd "$target_dir"
git checkout "refs/tags/v$MIN_VERSION"
make --jobs 2
./git version