You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/Scripts/git/git-configure.sh

10 lines
245 B
Bash

#!/bin/bash
DIRNAME=$(git rev-parse --show-toplevel)
if ! git config --local -l | egrep -q include.path=../.gitconfig$; then
git config --local --add include.path ../.gitconfig
rm ${DIRNAME}/.git/index
git checkout HEAD -- ${DIRNAME}
fi