summaryrefslogtreecommitdiff
path: root/shell-scripts/azdo-switch-project
diff options
context:
space:
mode:
Diffstat (limited to 'shell-scripts/azdo-switch-project')
-rw-r--r--shell-scripts/azdo-switch-project4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell-scripts/azdo-switch-project b/shell-scripts/azdo-switch-project
index 50b97d6..2889e62 100644
--- a/shell-scripts/azdo-switch-project
+++ b/shell-scripts/azdo-switch-project
@@ -25,9 +25,9 @@ curl -s -H '$AUTH_HEADER' $WORK_AZDO_GIT_ORG_URL/{}$LIST_REPOSITORIES \
| fzf)
DEST_DIR="$GIT_DIR/$(echo $PROJECT | cut -d '/' -f3)"
-if [ ! -d $DEST_DIR ]
+if [ ! -d $DEST_DIR ]
then
- git clone $WORK_AZDO_GIT_ORG_URL/$PROJECT $DEST_DIR
+ git clone --bare $WORK_AZDO_GIT_ORG_URL/$PROJECT $DEST_DIR
fi
cd $DEST_DIR
$EDITOR