simon-git: bob (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Oct 16 19:28:11 BST 2017


TL;DR:
  9c6c371 Don't create build.{out,log} when run in the wrong directory.

Repository:     https://git.tartarus.org/simon/bob.git
On the web:     https://git.tartarus.org/?p=simon/bob.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-10-16 19:28:11

commit 9c6c371f2046c7044671766b748620e66cfae1ad
web diff https://git.tartarus.org/?p=simon/bob.git;a=commitdiff;h=9c6c371f2046c7044671766b748620e66cfae1ad;hp=f8e20640d69a8e477f9c921e4d2cdcec4c95ea5b
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Oct 16 19:26:34 2017 +0100

    Don't create build.{out,log} when run in the wrong directory.
    
    The real check for whether we can check the main module out
    successfully happens after we start logging things to the log file,
    and by that time it's too late to have avoided creating _any_ debris
    in the current directory as a result of the user having absentmindedly
    run 'bob' there.
    
    This is a simplistic check, but it should catch the really obvious
    cases of the user getting it wrong.

 bob         |  6 ++++++
 checkout.py | 20 +++++++++++++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)



More information about the tartarus-commits mailing list