• Bug#1105756: 'git-debpush --force' doesn't lead to 'git push --force'

    From Simon Josefsson@21:1/5 to All on Wed May 14 15:50:01 2025
    Package: git-debpush
    Version: 12.12
    Severity: wishlist

    I was in a situation where 'git push --force' would have been necessary
    to force-push to some changes, and used 'git-debpush --force'.

    However this doesn't pass --force to 'git push'.

    Reviewing the man page, I would tend to agree that this is the right
    approach since --force is used to mean something different here.

    However, I think the situation is still a bit sub-optimal.

    How about a 'git debpush --force=git-push' mode?

    Alternatively, document this and suggest that in this rather odd
    situation, people can use 'git-debpush --tag-only' and then do the 'git
    push --force' since it is really an unsafe way of working.

    /Simon

    -----BEGIN PGP SIGNATURE-----

    iQNoBAEWCAMQFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmgknbcUHHNpbW9uQGpv c2Vmc3Nvbi5vcmfCHCYAmDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9f V+QlTmXxo2naObDuGtw58YaxlOu0JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9z ZWZzc29uLm9yZz6IlgQTFggAPgIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYh BLHSvRN1vst4TPT4xNc89jjFPAa+BQJn0XQkBQkNZGbwAAoJENc89jjFPAa+BtIA /iR73CfBurG9y8pASh3cbGOMHpDZfMAtosu6jbpO69GHAP4p7l57d+iVty2VQMsx +3TCSAvZkpr4P/FuTzZ8JZe8BrgzBFySz4EWCSsGAQQB2kcPAQEHQOxTCIOaeXAx I2hIX4HK9bQTpNVei708oNr1Klm8qCGKiPUEGBYIACYCGwIWIQSx0r0Tdb7LeEz0 +MTXPPY4xTwGvgUCZ9F0SgUJDWRmSQCBdiAEGRYIAB0WIQSjzJyHC50xCrrUzy9R cisI/kdFogUCXJLPgQAKCRBRcisI/kdFoqdMAQCgH45aseZgIrwKOvUOA9QfsmeE 8GZHYNuFHmM9FEQS6AD6A4x5aYvoY6lo98pgtw2HPDhmcCXFItjXCrV4A0GmJA4J ENc89jjFPAa+wUUBAO64fbZek6FPlRK0DrlWsrjCXuLi6PUxyzCAY6lG2nhUAQC6 qobB9mkZlZ0qihy1x4JRtflqFcqqT9n7iUZkCDIiDbg4BFySz2oSCisGAQQBl1UB BQEBB0AxlRumDW6nZY7A+VCfek9VpEx6PJmdJyYPt3lNHMd6HAMBCAeIfgQYFggA JgIbDBYhBLHSvRN1vst4TPT4xNc89jjFPAa+BQJn0XTSBQkNZGboAAoJENc89jjF PAa+0M0BAPPRq73kLnHYNDMniVBOzUdi2XeF32idjEWWfjvyIJUOAP4wZ+ALxIeh is3Uw2BzGZE6ttXQ2Q+DeCJO3TPpIqaXDAAKCRBRcisI/kdFoh+PAQCn/W/K2M5E /mi4rCpUyGTYS8Ne4Agb3w7BoNTUh+nZJgEA0sYyFGFEoe8Q0NLYU++go2VYJclH 7WcFtJAlO8u0Xww=
    =O6rF
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sean Whitton@21:1/5 to Simon Josefsson on Wed May 14 17:10:01 2025
    Hello,

    On Wed 14 May 2025 at 03:42pm +02, Simon Josefsson wrote:

    Package: git-debpush
    Version: 12.12
    Severity: wishlist

    I was in a situation where 'git push --force' would have been necessary
    to force-push to some changes, and used 'git-debpush --force'.

    However this doesn't pass --force to 'git push'.

    Reviewing the man page, I would tend to agree that this is the right
    approach since --force is used to mean something different here.

    However, I think the situation is still a bit sub-optimal.

    How about a 'git debpush --force=git-push' mode?

    Alternatively, document this and suggest that in this rather odd
    situation, people can use 'git-debpush --tag-only' and then do the 'git
    push --force' since it is really an unsafe way of working.

    The idea is that --force forces any and all applicable --force=foo.
    I agree with you that --force implying doing a git force push is
    probably unwanted. Therefore if we add an option for this, it would
    need to be a specially naemd one, e.g. --force-push.

    Right now I am leaning towards documenting "git-debpush never does force pushes, if you need that do an explicit "git push --force", as you also suggest.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmgksBkZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQDpJD/9vV2MQ5qVu3iQ8oU1fhDhn /1sAd8NSrvvJ4E2N+mk2o9EEuwBtCZJRjgj6xzD5Q7d9B+D3XDJ99bUKMVcqOkdx DIUpD+Z6jfP5RevV3lCvFsIRZtkkYgF7Zeo/7la2ukT5YtqcfNs6NIjoyVBMI7Ls 3FYyjztIgUdiTBHkrGz5S46rEO7Ti2cK3TVc0Z4WsatySLk6MMPxxacLKbN0VR77 Wj+VYyqTcIiz7X2R2/Rr2gMqKr6gEzuRXi4z4cidb1bdakGqGZbdTsP/XSxjIbSX spMEn94EuEmbyV7BrRVy+nO1E8Ylmc16rByy2iYw/3yw/FQMg/AGqqLDeOxqOEBO 98aMdrKFzKnEYdbXJCFTdDRvddCsHLMWjbNRZMLtS5fk9OgfcjcN/It2L+Q+05LW IAi5dGvhM3cItHsFoYY166u49wi0qgORBw5NpgYmTHjsqs67xALvdmS7kiVHYB4c ZoX+EuTXlCmzavvw4P1TTyvRGVfeur/mJXgvj7mMPJQiZ23hHJf64QaiLZ2x1c0v x3eYxSKsf8xb8tW8ca5+TX7EWOjsALvwDU+r70sS0cCuxCTdnsqS7H3mBq64eYjd eJ27BdOnuYJrt84v4qa/mHsxciVzcLwqIFUJBGrwGE/HxpR2JNt2IGZ07fdNRrtm 2YRGbTmy24SbZsLyJkc50g==I3KB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us