| @@ -717,10 +717,19 @@ |
| 717 | 717 | await runDocker([ |
| 718 | 718 | "run", "--rm", |
| 719 | 719 | "-v", "/data/grove:/data/grove", |
| 720 | | "--entrypoint", "sh", |
| 720 | "--entrypoint", "gitimport", |
| 721 | 721 | "grove/mononoke:latest", |
| 722 | | "-c", |
| 723 | | `git config --global --add safe.directory '*' && gitimport --repo-name ${repoName} --config-path ${MONONOKE_CONFIG_PATH} --local-configerator-path ${DATA_DIR}/configerator --cache-mode disabled --just-knobs-config-path ${DATA_DIR}/justknobs.json --generate-bookmarks --derive-hg --git-command-path /usr/bin/git --concurrency 5 ${bareRepo} full-repo`, |
| 722 | "--repo-name", repoName, |
| 723 | "--config-path", MONONOKE_CONFIG_PATH, |
| 724 | "--local-configerator-path", `${DATA_DIR}/configerator`, |
| 725 | "--cache-mode", "disabled", |
| 726 | "--just-knobs-config-path", `${DATA_DIR}/justknobs.json`, |
| 727 | "--generate-bookmarks", |
| 728 | "--derive-hg", |
| 729 | "--git-command-path", "/usr/bin/git", |
| 730 | "--concurrency", "5", |
| 731 | bareRepo, |
| 732 | "full-repo", |
| 724 | 733 | ], (line) => { |
| 725 | 734 | send("log", { step: "import", line }); |
| 726 | 735 | }); |
| @@ -814,12 +823,10 @@ |
| 814 | 823 | await runDocker([ |
| 815 | 824 | "run", "--rm", |
| 816 | 825 | "-v", "/data/grove:/data/grove", |
| 817 | | "--entrypoint", "mv", |
| 826 | "--entrypoint", "sh", |
| 818 | 827 | "grove/mononoke:latest", |
| 819 | | `${DATA_DIR}/bare.git`, bareRepo, |
| 820 | | ], () => {}).catch(() => { |
| 821 | | // Already at the right path |
| 822 | | }); |
| 828 | "-c", `mv ${DATA_DIR}/bare.git ${bareRepo} 2>/dev/null; chown -R root:root ${bareRepo}`, |
| 829 | ], () => {}); |
| 823 | 830 | |
| 824 | 831 | send("progress", { step: "upload", message: "Extracted." }); |
| 825 | 832 | |
| @@ -829,10 +836,19 @@ |
| 829 | 836 | await runDocker([ |
| 830 | 837 | "run", "--rm", |
| 831 | 838 | "-v", "/data/grove:/data/grove", |
| 832 | | "--entrypoint", "sh", |
| 839 | "--entrypoint", "gitimport", |
| 833 | 840 | "grove/mononoke:latest", |
| 834 | | "-c", |
| 835 | | `git config --global --add safe.directory '*' && gitimport --repo-name ${repoName} --config-path ${MONONOKE_CONFIG_PATH} --local-configerator-path ${DATA_DIR}/configerator --cache-mode disabled --just-knobs-config-path ${DATA_DIR}/justknobs.json --generate-bookmarks --derive-hg --git-command-path /usr/bin/git --concurrency 5 ${bareRepo} full-repo`, |
| 841 | "--repo-name", repoName, |
| 842 | "--config-path", MONONOKE_CONFIG_PATH, |
| 843 | "--local-configerator-path", `${DATA_DIR}/configerator`, |
| 844 | "--cache-mode", "disabled", |
| 845 | "--just-knobs-config-path", `${DATA_DIR}/justknobs.json`, |
| 846 | "--generate-bookmarks", |
| 847 | "--derive-hg", |
| 848 | "--git-command-path", "/usr/bin/git", |
| 849 | "--concurrency", "5", |
| 850 | bareRepo, |
| 851 | "full-repo", |
| 836 | 852 | ], (line) => { |
| 837 | 853 | send("log", { step: "import", line }); |
| 838 | 854 | }); |
| 839 | 855 | |