Python Fabric error when executing git archive command
I'm running Fabric on a windows 7 machine, when I type:
fab production setup
I get the following error:
[localh开发者_StackOverflow社区ost] run: git archive --format=tar master > 20110221142115.tar
Warning: local() encountered an error (return code 1) while executing 'git archi
ve --format=tar master > 20110221142115.tar'
the fabric file works fine on my Windows XP machine, but I can't seem to get past this error. I also tried running the "git archive" command from the prompt, it works fine no issues. Any idea why Fabric is puking?
If the same script/command works on Windows XP, then did you check if Windows 7 firewall or any sort-of-protection
is not allowing your connection to go through? Try if the following works on interactive prompt:
from fabric.api import local
local('git archive')
精彩评论