Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why can I not have 2 repositories with the same name even if they are in different projects?

Giancarlo Franchi October 2, 2022

Say I have the following project / repo hierarchy:

 

java

|----- my-first-repo

python

|----- my-first-repo

 

When I try to create the my-first-repo in the python project I get an error saying I already have a repo with the name my-first-repo.

 

Seems like I should be able to create repos with the same name if they are in different projects.

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2022

Welcome to the Atlassian Community!

It's because the repo name is part of the path.  Think of what goes on the disk - how would ./mygitwork/bob get distinguished from ./mygitwork/bob ?

Giancarlo Franchi October 2, 2022

Makes sense, but then why not have the project name also be part of the path.

Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2022

Hi, @Giancarlo Franchi,

 

We already have the following feature requests to include the project ID to the repository URL, which would allow you to create two repositories with the same name in different projects: 

I would suggest that you add your vote there (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. 

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here and any updates will be posted in the feature request. 

Kind regards,
Caroline

Giancarlo Franchi October 4, 2022

Thank you Caroline!

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2022

Do the projects have different keys? 

BTW, I just tried to create a repo with same name on different project and it worked great - on bitbucket cloud 

Giancarlo Franchi October 3, 2022

Odd.

 

I have a the following projects:

 

Java --> Key = JAVA

Python --> Key = PYT

 

In java I have a repo called minesweeper.

 

I'm re-writing it in Python. So i go to create new repo. I select my workspace. Then project Python and try to create repo minesweeper.

 

It gives me the error that a repo with that name exists (I don't have a minesweeper repo in the python project).

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events