16 lines
318 B
Bash
Executable File
16 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
|
|
repo_root=$(git rev-parse --show-toplevel 2>/dev/null) || exit 0
|
|
git_dir=$(git rev-parse --git-dir 2>/dev/null) || exit 0
|
|
case "$git_dir" in
|
|
/*) ;;
|
|
*) git_dir="$repo_root/$git_dir" ;;
|
|
esac
|
|
|
|
(
|
|
cd "$repo_root" || exit 0
|
|
./scripts/gitnexus-refresh.sh
|
|
) >>"$git_dir/gitnexus-refresh.log" 2>&1 &
|
|
|
|
exit 0
|