github / github/gh-gei

Migration Fails because retrie to create and already migrated branch

Open
#1,594 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
478
Forks
146
Avg merge
7d 21h
Merged PRs (30d)
2

Description

## Description
I'm having issue when trying to migrate a repo with 2 branchs, release and master, but it appears to have already migrate the release branch, and also the master. But keeps throwing issue below and I believe is because there is some issue during migration, it retries to migrate, but it already migrated the release branch, so I don't really know what error truly happened. Also for some reason is setting release as default.

[ERROR] OctoshiftCLI.OctoshiftCliException: File exists - File exists @ dir_s_mkdir - /octoshift/archives/*/git/refs/heads/release

## Reproduction Steps

Contributor guide

Open the contributing guide

Research direction

No source file, test, or command entry point is named. Start by reproducing a migration with release and master branches and inspect how retries handle the existing refs/heads/release path. Done means the original migration failure is surfaced clearly instead of being obscured by the File exists retry error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.