git-log: detect dup and fdopen failure