Fix resetting the origin of msysgit repo in net installer
commit0b1ac0f5231db3579048181de81ea1fce6d38ce3
authorKirill <kirillathome@gmail.com>
Wed, 15 Apr 2009 02:22:28 +0000 (14 22:22 -0400)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 15 Apr 2009 10:22:32 +0000 (15 12:22 +0200)
treebb61ddef5e14bbca3b18b6c508f7325ea4614786
parent192db70dce2a704f96bff7940d76c3a2f64a787b
Fix resetting the origin of msysgit repo in net installer

After the first successful fetch of MSys environment over git:// the
origin was reconfigured to use http:// causing further fetches to be
extremely slow and CPU-intensive.

The issue was caused by incorrect order of applying || and && operators
when trying various options to fetch the environment. Essentially, when
the first git fetch succeeded, USE_HTTP was not set (so MinGW Git sources
were configured to use git://), but the origin was nevertheless changed
and the second git fetch was executed. But the second git fetch does not
produce any output and exits successfully, kind of hiding the issue until
the [much] later fetch.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
share/msysGit/net/setup-msysgit.sh