Skip to content

Commit d60bb64

Browse files
committed
Make this change test only
1 parent 6b63b4a commit d60bb64

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

bin/ghe-restore

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -563,18 +563,9 @@ echo \"$cmd_title\"
563563
ghe-restore-repositories \"$GHE_HOSTNAME\"")
564564

565565
cmd_title=$(log_info "Restoring Gists ...")
566-
if [ "$GHE_PARALLEL_ENABLED" = "yes" ]; then
567-
## Stagger ghe-restore-repositories-gist with ghe-restore-repositories to avoid
568-
## race condition to operate on same destination directory
569-
commands+=("
570-
echo \"$cmd_title\"
571-
sleep 2
572-
ghe-restore-repositories-gist \"$GHE_HOSTNAME\"")
573-
else
574-
commands+=("
575-
echo \"$cmd_title\"
576-
ghe-restore-repositories-gist \"$GHE_HOSTNAME\"")
577-
fi
566+
commands+=("
567+
echo \"$cmd_title\"
568+
ghe-restore-repositories-gist \"$GHE_HOSTNAME\"")
578569

579570
if [ "$GHE_BACKUP_PAGES" != "no" ]; then
580571
cmd_title=$(log_info "Restoring Pages ...")

test/testlib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ setup_remote_metadata () {
8787
mkdir -p "$GHE_REMOTE_DATA_DIR" "$GHE_REMOTE_DATA_USER_DIR"
8888
mkdir -p "$GHE_REMOTE_DATA_USER_DIR/common"
8989
mkdir -p "$GHE_REMOTE_ROOT_DIR/etc/github"
90+
# Create fake remote repositories dir
91+
mkdir -p "$GHE_REMOTE_DATA_USER_DIR/repositories"
9092
}
9193
setup_remote_metadata
9294

0 commit comments

Comments
 (0)