From: Hugo Villeneuve Date: Fri, 28 Jun 2013 20:55:59 +0000 (-0400) Subject: git-hg-sub-import: Affiche les traces pour subpaths seulement en mode debug X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d27635bbe5a84fcd1b9f1ac5deca44f46e7d0892;p=hvutilities.git git-hg-sub-import: Affiche les traces pour subpaths seulement en mode debug --- diff --git a/scripts/git-hg-sub-import b/scripts/git-hg-sub-import index 64b1035..9789578 100755 --- a/scripts/git-hg-sub-import +++ b/scripts/git-hg-sub-import @@ -24,8 +24,10 @@ hg_subpaths_config() { sp_src=${sp_src//\\/} # Remove windows separator (LSI) sp_dst=${subpaths//*=/} - echo "sp_src = $sp_src" - echo "sp_dst = $sp_dst" + if [ -n "${debug}" ]; then + echo "sp_src = $sp_src" + echo "sp_dst = $sp_dst" + fi fi }