I got a problem when doing attachments (C-c C-a c/m/c). My *Messages* buffer is flooded with: "fatal: pathspec 'x' did not match any files" messages. This is because the `split-string' function call in `org-attach-commit' does not split correctly in my emacs version (23.1.92.1). Maybe other emacs versions split by NULL-characters when SEPARATORS is the empty string but mine does not so I suggest the attached change. It fixes this problem for me and is also correcting two other typos found when recompiling. Patch is against the current git head.