fix: improve h5 payment return flow
This commit is contained in:
18
scripts/git-hooks/post-checkout
Executable file
18
scripts/git-hooks/post-checkout
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Third argument is 1 for branch checkout and 0 for file checkout.
|
||||
[ "${3:-0}" = "1" ] || exit 0
|
||||
|
||||
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
|
||||
15
scripts/git-hooks/post-commit
Executable file
15
scripts/git-hooks/post-commit
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
15
scripts/git-hooks/post-merge
Executable file
15
scripts/git-hooks/post-merge
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
15
scripts/git-hooks/post-rewrite
Executable file
15
scripts/git-hooks/post-rewrite
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user