xltrail / git-xl

Git extension: Makes git-diff work for VBA in Excel workbooks (xls* file types)
https://www.xltrail.com/git-xl
MIT License
559 stars 72 forks source link

git diff how to provide password if the excel&the VBA is password protected currently throwing "Invalid password" #34

Closed seppu closed 5 years ago

seppu commented 5 years ago

I am trying to figure out how to use xltrail for our project. Installed xltrail client as per instructions. But I am getting the following error when executing git diff [18812] Failed to execute script diff Traceback (most recent call last): File "diff.py", line 28, in <module> Aspose.Cells.CellsException: Invalid password. at ^N\u2004\u2003.^B(^E\u200b\u2000\u2002 ^B, String ^C) at Aspose.Cells.Workbook.^B(String ^B, LoadOptions ^C) at xltrail.core.Workbook..ctor(String path) fatal: external diff died, stopping at FMT.xlsm The git config has the following entry [diff "xltrail"] command = git-xltrail-diff.exe [merge "xltrail"] name = xltrail merge driver for Excel workbooks driver = git-xltrail-merge.exe %P %O %A %B

Any idea how to provide the password when the file is protected.

fzumstein commented 5 years ago

Hi seppu, password protected files are currently not supported. If only VBA is password protected, that should work.

seppu commented 5 years ago

Thank you for the clarification.