From 438c912ba7d18ee34c96b80e9f73f369a94d4171 Mon Sep 17 00:00:00 2001 From: Juan Picca Date: Mon, 17 Jun 2019 11:25:24 -0300 Subject: [PATCH] Improve update-repos script Print the working directory before the output generated by git. With this is easy to determine the messages that correspond to each git repository. Also, update the script to use python3 due to python2 deprecation. --- update-repos/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update-repos/update.py b/update-repos/update.py index 6656b1b..2b1747d 100755 --- a/update-repos/update.py +++ b/update-repos/update.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/python3 # Author: Steve Zesch @@ -7,7 +7,7 @@ # are stored as mate-desktop/mate-common, mate-desktop/mate-doc-utils, etc. # Obviously, you want the cwd when the script runs to be the folder that -# contains all the mate repos. You can achieve this by copying this +# contains all the mate repos. You can achieve this by copying this # script from mate-dev-scripts/update-repos to the parent directory, # running the script via it's path (mate-dev-scripts/update-repos/update.py), # or by creating a symbolic link. I prefer the symbolic link method. @@ -21,5 +21,6 @@ if os.path.isdir(d): os.chdir(d) if '.git' in os.listdir('.'): + print(" - ", d) os.system('git pull') os.chdir('..')