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

Porcelain pull on Windows #448

Closed
akbargumbira opened this issue Aug 13, 2016 · 2 comments
Closed

Porcelain pull on Windows #448

akbargumbira opened this issue Aug 13, 2016 · 2 comments

Comments

@akbargumbira
Copy link
Contributor

Hi, I just tested dulwich on windows, but apparently I can't pull on windows? Pulling is fine on Linux. Here is the traceback:

2016-08-13T00:05:22 2   Traceback (most recent call last):
              File "C:/Users/IEUser/.qgis2/python/plugins\qgis_resources_sharing\resource_sharing\repository_handler\remote_git_handler.py", line 125, in download_collection
                b'refs/heads/master'
              File "C:/Users/IEUser/.qgis2/python/plugins\qgis_resources_sharing\ext_libs\dulwich\porcelain.py", line 619, in pull
                determine_wants=determine_wants)
              File "C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\client.py", line 256, in fetch
                commit()
              File "C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\client.py", line 243, in commit
                target.object_store.add_thin_pack(f.read, None)
              File "C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\object_store.py", line 606, in add_thin_pack
                return self._complete_thin_pack(f, path, copier, indexer)
              File "C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\object_store.py", line 570, in _complete_thin_pack
                os.rename(path, pack_base_name + '.pack')
            WindowsError: [Error 183] Cannot create a file when that file already exists

@jelmer
Copy link
Owner

jelmer commented Aug 13, 2016

Do you perhaps have a virus scanner installed on this machine?

On 13 August 2016 09:23:57 CEST, Akbar Gumbira notifications@github.com wrote:

Hi, I just tested dulwich on windows, but apparently I can't pull on
windows? Pulling is fine on Linux. Here is the traceback:

2016-08-13T00:05:22    2   Traceback (most recent call last):
            File
"C:/Users/IEUser/.qgis2/python/plugins\qgis_resources_sharing\resource_sharing\repository_handler\remote_git_handler.py",
line 125, in download_collection
              b'refs/heads/master'
            File
"C:/Users/IEUser/.qgis2/python/plugins\qgis_resources_sharing\ext_libs\dulwich\porcelain.py",
line 619, in pull
              determine_wants=determine_wants)
            File
"C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\client.py",
line 256, in fetch
              commit()
            File
"C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\client.py",
line 243, in commit
              target.object_store.add_thin_pack(f.read, None)
            File
"C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\object_store.py",
line 606, in add_thin_pack
              return self._complete_thin_pack(f, path, copier, indexer)
            File
"C:\Users\IEUser\.qgis2\python\plugins\qgis_resources_sharing\ext_libs\dulwich\object_store.py",
line 570, in _complete_thin_pack
              os.rename(path, pack_base_name + '.pack')
          WindowsError: [Error 183] Cannot create a file when that file
already exists

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#448

@akbargumbira
Copy link
Contributor Author

@jelmer no there is no virus scanner. I tested it on virtualbox (running from ubuntu)

akbargumbira added a commit to akbargumbira/dulwich that referenced this issue Aug 13, 2016
* On Windows, os.rename will thrown WindowsError if the destination already exists.
@jelmer jelmer mentioned this issue Aug 13, 2016
@jelmer jelmer closed this as completed in 4fc96f1 Aug 15, 2016
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

2 participants