Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "destination path 'XXX' already exists and is not an empty directory #103

Closed
hachillesIBM opened this issue Jun 1, 2016 · 1 comment

Comments

@hachillesIBM
Copy link

Hi,
I'm trying to migrate an RTC repository to git using the tools.. I've set up the config.ini file & when I run the migration.py script I get the following error:
"fatal: destination path 'IWM_m4' already exists and is not an empty directory.

IWM_m4 is the "git-Reponame' in the config.ini script.. this repo did not exist before I ran the migration script.. so I'm not sure why I am seeing this error.. THere is a cut & paste of the logging below (I added a couple logging lines to see some info)

Any insights/suggestions are appreciated.

./migration.py

refs/heads/rtc_migration1
refs/heads/rtc_migration1_branchpoint
13:46:32 - Migration will take place in tmp/rtc_migration_tmp
Initialized empty Git repository in /Users/heather_achilles/GitHub/rtc2git/tmp/rtc_migration_tmp/IWM_m4/
13:46:32 - Repository was created in /Users/heather_achilles/GitHub/rtc2git/tmp/rtc_migration_tmp
fatal: destination path 'IWM_m4' already exists and is not an empty directory.
13:46:32 - cloned Repo Name IW
13:46:32 - Repo Name IWM_m4
Traceback (most recent call last):
File "./migration.py", line 169, in
migrate()
File "./migration.py", line 63, in migrate
initialize()
File "./migration.py", line 27, in initialize
git.initalize()
File "/Users/heather_achilles/GitHub/rtc2git/gitFunctions.py", line 53, in initalize
self.createrepo()
File "/Users/heather_achilles/GitHub/rtc2git/gitFunctions.py", line 68, in createrepo
os.chdir(self.clonedRepoName)
FileNotFoundError: [Errno 2] No such file or directory: 'IW'

@hachillesIBM
Copy link
Author

looks like the problem is that the repo name needs a ".git" .. adding that extension allowed me to get by this error. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant