diff options
-rwxr-xr-x | install_dev_githooks.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install_dev_githooks.sh b/install_dev_githooks.sh index b43dd6a0..4e7e76d6 100755 --- a/install_dev_githooks.sh +++ b/install_dev_githooks.sh @@ -3,7 +3,7 @@ echo Installing post-merge hook which recursively forces all echo submodules to latest commit after every git pull cat <<EOT >> .git/hooks/post-merge #!/bin/sh -git submodule foreach --recursive 'branch=\$(git config -f \$toplevel/.gitmodules submodule.\$name.branch); [ \"\$branch\" = \"\" ] && branch=master; git checkout \$branch; git merge origin/$branch;' +git submodule foreach --recursive 'branch=\$(git config -f \$toplevel/.gitmodules submodule.\$name.branch); [ \"\$branch\" = \"\" ] && branch=master; git checkout \$branch; git merge origin/\$branch;' EOT chmod +x .git/hooks/post-merge echo Installing custom 'git pull-all' command for recursively |