2013-04-22 65 views
2

取鉻--nosvn =真指令將使以下錯誤:取鉻不起作用

`C:\Users\Gunwoo\workspace\chromium>fetch chromium --nosvn=True 
Cannot rebase: You have unstaged changes. 
Please commit or stash them. 
Running: svn ls --non-interactive svn://svn.chromium.org/chrome 
Traceback (most recent call last): 
    File "E:\depot_tools\\fetch.py", line 253, in <module> 
    sys.exit(main()) 
    File "E:\depot_tools\\fetch.py", line 249, in main 
    return run(dryrun, spec, root) 
    File "E:\depot_tools\\fetch.py", line 243, in run 
    return checkout.init() 
    File "E:\depot_tools\\fetch.py", line 108, in init 
    self.run_svn('ls', '--non-interactive', svn_spec['svn_url']) 
    File "E:\depot_tools\\fetch.py", line 83, in run_svn 
    return subprocess.check_call(('svn',) + cmd, **kwargs) 
    File "E:\depot_tools\python_bin\lib\subprocess.py", line 457, in check_call 
    retcode = call(*popenargs, **kwargs) 
    File "E:\depot_tools\python_bin\lib\subprocess.py", line 444, in call 
    return Popen(*popenargs, **kwargs).wait() 
    File "E:\depot_tools\python_bin\lib\subprocess.py", line 595, in __init__ 
    errread, errwrite) 
    File "E:\depot_tools\python_bin\lib\subprocess.py", line 804, in _execute_child startupinfo) 
WindowsError: [Error 2]` 

我安裝depot_tools並列入其路徑爲系統環境變量 。

我該怎麼辦?

+0

和我的操作系統是Windows 8. PLZ幫助我。 – user1746360 2013-04-22 09:38:53

回答

2

我在windows計算機上遇到同樣的問題,'git status'顯示depot_tools中的一堆文件被修改。 可能你已經在depot_tools中取消了更改。 我解決了git reset - hard HEAD沒有depot_tools文件夾。

+0

謝謝,它運作良好! – user1746360 2013-04-23 00:13:47