[BUG] git commit --allow-empty-message -m '' fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When passed the `--allow-empty-message` flag with no `-m`, `git
commit` will open the editor and allow you to exit with an empty
message, as expected.

However, when passed `-m ''` in addition to `--allow-empty-message`,
the commit fails. Example below:

    $ git commit -a --allow-empty-message -m ''
    error: switch `m' requires a value
    usage: git commit [<options>] [--] <pathspec>...
    ...

Shouldn't the `-m` switch know whether the `--allow-empty-message`
flag has been passed?

Thanks,
Josh
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]