]> git.phdru.name Git - git-scripts.git/commitdiff
Fix: Remove excessive redirection and exit code check
authorOleg Broytman <phd@phdru.name>
Fri, 1 Mar 2019 22:50:34 +0000 (01:50 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 1 Mar 2019 22:50:34 +0000 (01:50 +0300)
edit-description
run-recursive

index 1e7605e817e6281e6811afc3d7cc942a1859c54b..d378202b89df2d2b9ec93ebe3ac1f1e4fbcfe58f 100755 (executable)
@@ -4,5 +4,5 @@ g="`git rev-parse --git-dir`" &&
 
 if [ "`cat $g/description`" = "Unnamed repository; edit this file 'description' to name the repository." ]
 then
-   exec `git var GIT_EDITOR` "$g"/description < /dev/tty
+   exec `git var GIT_EDITOR` "$g"/description
 fi
index 5881aedd1d7b395d847825b9c1e0ea509afe33d6..35992939c5b5993cda830df0ad09da9e887865bc 100755 (executable)
@@ -3,5 +3,5 @@
 "$@" &&
 
 if [ -f .gitmodules ]; then
-   exec git submodule foreach --quiet --recursive "$@" || exit 1
+   exec git submodule foreach --quiet --recursive "$@"
 fi