From 6b350dca80acc51b2bb3fc25debe1d1b5ee2d2f4 Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Sun, 9 Dec 2007 17:57:50 +0100 Subject: [PATCH] =?UTF-8?q?On=20devine=20l'emplacement=20du=20d=C3=A9p?= =?UTF-8?q?=C3=B4t.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20071209165750-af139-02b01e2ea60cb6fc1828843e5989f9a7aad2338f.gz --- gestion/darcs_send_changes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gestion/darcs_send_changes.py b/gestion/darcs_send_changes.py index a003db0a..ca0e08b4 100755 --- a/gestion/darcs_send_changes.py +++ b/gestion/darcs_send_changes.py @@ -189,6 +189,12 @@ if __name__ == "__main__": if repo: os.chdir(repo) + else: + while not os.path.exists('_darcs') and os.getcwd() != '/': + os.chdir('..') + if not os.path.exists('_darcs') and os.getcwd() == '/': + cprint("Pas de dépôt darcs trouvé") + sys.exit(1) if not template and os.path.exists(TEMPLATE_FILE): template = TEMPLATE_FILE if template: