I had the same error and found out that this always happened when I tried to import into Eclipse, having a local git repository (the directory where the repository will be copied to). So just closing the file browser and importing again solved my problem.
source share