Original Reddit post

It seems there has been some changes, because before CC would handle git pretty easily, but now it always emits a compound bash command that the tool handler does not like. It basically changes the directory to root (even when it is already there, which is the vast majority of the time) before doing the command. Then it emits this warning: “Compound commands with cd and git require approval to prevent bare repository attacks” So I have to approve it. It isn’t clear to me how to enter this in the permission list since it isn’t a single command. This is quite a pain since it is litterally everything I ask it to use git for me. Is it a new bug? Is there something strange about how I am doing things? Insights appreciated. submitted by /u/MikeWise1618

Originally posted by u/MikeWise1618 on r/ClaudeCode