Skip to content

Commit 3383ea7

Browse files
bwestoverhubwriter
andauthored
Add new step to migrate internal repos for 3.0+ (#18927)
* On 3.0+ we need to prefix the command with github-env to get into the container. * greater than 2.22 not 3.0 Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 1361bb3 commit 3383ea7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

content/admin/user-management/migrating-to-internal-repositories.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ If you don't have private mode enabled, the migration script will have no effect
3434
### Running the migration
3535

3636
1. Connect to the administrative shell. For more information, see "[Accessing the administrative shell (SSH)](/enterprise/admin/installation/accessing-the-administrative-shell-ssh)."
37+
{% if currentVersion ver_gt "enterprise-server@2.22" or currentVersion == "github-ae@latest" %}
38+
2. Run the migration command.
39+
```shell
40+
github-env bin/safe-ruby lib/github/transitions/20191210220630_convert_public_ghes_repos_to_internal.rb --verbose -w | tee -a /tmp/convert_public_ghes_repos_to_internal.log
41+
```
42+
{% else %}
3743
2. Navigate to the `/data/github/current` directory.
3844
```shell
3945
cd /data/github/current
@@ -42,6 +48,7 @@ If you don't have private mode enabled, the migration script will have no effect
4248
```shell
4349
sudo bin/safe-ruby lib/github/transitions/20191210220630_convert_public_ghes_repos_to_internal.rb --verbose -w | tee -a /tmp/convert_public_ghes_repos_to_internal.log
4450
```
51+
{% endif %}
4552

4653
Log output will appear in the terminal and `/tmp/convert_public_ghes_repos_to_internal.log`.
4754

0 commit comments

Comments
 (0)