Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an MIT-licensed project that used to include a GPL JavaScript library which has since been removed.

Is there any legal necessity to rewrite the revision history to completely remove this code?

share|improve this question
up vote 4 down vote accepted

I am not a lawyer, but:

The issue largely comes down to licensing documentation. There is no reason why your old revision could not be licensed under the GPL, but if you do not announce that it is licensed under the GPL, then it's functionally not, and those revisions are in violation of the GPL. You cannot even be given the benefit of the doubt that might be given to a young repository with no published license on the revisions ("I hadn't gotten around to putting one up yet, and I thought it would be obvious since I'm using GPL libraries...") , since your licensing documentation for that revision probably says that the project, as a whole, is under MIT.

Thus, the pathological person who downloads the old version of your code has received software that claims to be MIT-licensed but that is legally obligated to be GPL-licensed, which is a GPL violation.

I'm afraid you must eliminate the possibility of public distribution of your non-compliant revisions by removing them from your history.

share|improve this answer
I am not a lawyer either, but including GPL code does NOT mean your software is automatically licensed under the GPL; it merely means you're violating the GPL if it's not, and could be sued. – Michael Borgwardt Jan 2 '13 at 21:31
@MichaelBorgwardt True enough -- I have clarified my answer, and in so doing, completely reversed the result. – apsillers Jan 2 '13 at 21:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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