Thread (8 messages) flat view 8 messages, 4 authors, 2016-06-15

Re: [PATCH] new test from the submodule chapter of the user manual

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:35

Possibly related (same subject, not in this thread)

Hi,

On Thu, 20 Sep 2007, Joel Becker wrote:
On Thu, Sep 20, 2007 at 07:08:31PM +0200, Miklos Vajna wrote:
quoted
+test_expect_success "create the submodules" '
+	for i in a b c d
+	do
+		mkdir $i &&
+		cd $i &&
+		git init &&
+		echo "module $i" > $i.txt &&
+		git add $i.txt &&
+		git commit -m "Initial commit, submodule $i" &&
+		cd ..
+	done
	Silly question: why use the '&&' when you can 'set -e'?  As it
currently stands, a failure will still go back around the loop...
A "set -e" will make the script exit AFAIR.  That's not what we want.  A 
simple "|| break" after the "cd .." will work, though.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help