android-studio-plugin icon indicating copy to clipboard operation
android-studio-plugin copied to clipboard

Branch name can't contain any of the following characters: \ / : * ? " < > |

Open Seb-IndigoAg opened this issue 3 years ago • 1 comments

Describe the bug Looks like I can't use / in my branch name. for example: poc/crowdin, will throw Crowdin: Branch name can't contain any of the following characters: \ / : * ? " < > |

To Reproduce Steps to reproduce the behavior:

  1. Create branch with a / -> git checkout -b poc/crowdin
  2. Run Gradle Sync from Android Studio
  3. Tap refresh data in Crowdin Android Studio Plugin window
  4. Check Android Studio's Event Log window

Environment:

  1. Android Studio version: Chipmunk 2021.2.1
  2. OS version: macOS Monterey (12.2.1)

Expected behavior A clear and concise description of what you expected to happen. Expect to sync with Crowdin backend

Screenshots Screen Shot 2022-08-15 at 2 01 38 PM

Additional context

Run the plugin in Debug mode and provide an extended log. To enable Debug mode add debug=true to the crowdin.properties file.

2:02 PM	Crowdin
        2022-08-15 14:02:13.635 ERROR : java.lang.RuntimeException: Branch name can't contain any of the following characters: \ / : * ? " < > |
        at com.crowdin.util.ActionUtils.getBranchName(ActionUtils.java:14)
        at com.crowdin.ui.action.RefreshTranslationProgressAction.performInBackground(RefreshTranslationProgressAction.java:79)
        at com.crowdin.action.BackgroundAction$1.run(BackgroundAction.java:31)
        at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:450)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:117)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:510)
        at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:243)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicat... (show balloon)

2:02 PM	Crowdin: Branch name can't contain any of the following characters: \ / : * ? " < > |

Seb-IndigoAg avatar Aug 15 '22 18:08 Seb-IndigoAg

Hi @Seb-IndigoAg!

It's a Crowdin API limitation - a branch name can't contain the following characters: \ / : * ? " < > |

Please try not to use slashes in the branch names.

andrii-bodnar avatar Aug 16 '22 07:08 andrii-bodnar