milki/dulwich — comment on commit 2c7b4058dcb2d4513044a768ad04ebd353501428
File: dulwich/index.py line 414
By milki:

Indeed. Need to use os.symlink.