22

I am new to open-source world. I have contributed some code to an open-source project licensed under GPLv3 but with no contributor agreement license.

Is it legal for the original author to upload the project somewhere else and delete the commit history of contributors (despite my code contribution still being there in the new uploaded project)?

8
  • 1
    In the code as it currently is, are your copyright statements preserved in your contributions?
    – MadHatter
    Feb 15, 2022 at 14:45
  • 2
    I repeat my specific question. When you contributed code, you included copyright declarations of the form (c) 2022 O. K. Validation, yes? And have those been preserved in the code?
    – MadHatter
    Feb 15, 2022 at 15:37
  • 2
    @MadHatter: I didn't include copyright declarations of that form. I have just corrected a bug and submitted two pull requests and got merged.
    – Amazigh_05
    Feb 15, 2022 at 17:30
  • 2
    Is your total contribution substantial? Minor and trivial bugfixes may not be worth the noise in the code.
    – fraxinus
    Feb 17, 2022 at 8:20
  • 1
    @ReversedEngineer the OP was worried about the removal of commit messages without accompanying removal of contributed code, which I thought meant (s)he was worried about concomitant loss of credit. I pointed out that commit messages aren't the right way to claim credit in free software, but copyright messages are: not only are they traditional, they're protected by most free software licences.
    – MadHatter
    Feb 18, 2022 at 7:56

1 Answer 1

44

Nearly all free software licences require the preservation of existing copyright notices. If the author of a piece of GPLv3 software accepted your modified version, then since this code had to be conveyed under the terms of GPLv3, the author is required to preserve your copyright notice.

Nearly no free software licences concern themselves with the minutiae of source-code control systems, so nearly none of them make any reference to "commit messages" or "history", nor are there any requirements to preserve the artefacts of a particular source-code control system. This is unquestionably a good thing, since otherwise projects would be full of foo.c,v files we could never remove.

You should go back to the author, apologetically point out that GPLv3 s5a required you to add a copyright notice to the file(s) you modified (and in which you now have a copyright interest), and ask if you could add those in a separate pull request. Strictly speaking, the author isn't obliged to accept them, but most people in free software understand that the copyright notice is the standard currency of acknowledgement - and that source-code control system artefacts aren't.

15
  • 2
    @Barmar some do (notably, FSF projects), but most don’t. Even among projects with contributor agreements, most of those are contributor licensing agreements, not copyright assignment agreements. Feb 17, 2022 at 15:54
  • 1
    What is a foo.c,v file?
    – Bergi
    Feb 17, 2022 at 20:27
  • 3
    @Bergi it's an RCS file, a 40-year-old system for tracking and crediting source changes - which is rather my point. JoL, yes, they still hold copyright - the OP's question seemed to be about credit rather than copyright or re-licensing rights. Everyone else, could I beg you stop having conversations in this comments field?
    – MadHatter
    Feb 17, 2022 at 22:34
  • 1
    Maybe not in this case, but imagine every single committer adding his name and mail address to every single source file in every single open source project. ...
    – AnoE
    Feb 18, 2022 at 12:55
  • 2
    @MadHatter, I did not try to put words in your mouth, but was elaborating why the factual statement you make in your accepted answer (GPLv3 somehow requiring someone to add a copyright notice to the files they are modifying) is not only not part of GPLv3 when reading the actual formulation there, but why it often would not even be wise to do so. The answer is accepted, so it doesn't matter anymore I guess. I'd hate if people casually reading this in the future then think doing it that way really is part of the GPLv3, there's enough confusion out there as it is, anyways...
    – AnoE
    Feb 18, 2022 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.