{"thread":{"id":"28949","subject":"What to do if the path of my git submodules change upstream","startedAt":"2011-11-16T14:37:55Z","lastAt":"2011-11-16T14:37:55Z","messageCount":1,"participants":["Harald Heigl"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"179592","messageId":"000301cca46d$5428c3d0$fc7a4b70$@heigl-online.at","threadId":"28949","inReplyTo":null,"subject":"What to do if the path of my git submodules change upstream","fromName":"Harald Heigl","fromEmail":"harald@heigl-online.at","sentAt":"2011-11-16T14:37:55Z","receivedAt":"2011-11-16T14:37:55Z","isPatch":false,"sender":{"key":"harald@heigl-online.at","avatar":null},"body":"Hi everyone!\n\nFirst setup of my git was a server (with ssh) and some clients.\n\nToday I changed to gitolite because I wanted a more sophisticated way of\nmanaging my repos. So far so good\nSo the old path ssh://[ip]/[fullpath].git would change to a new path\ngit@[servername]:[gitreponame]. \nThis is no problem for normal repos, I change the remote origin and\ncontinue using push and pull.\n\nI have some submodules:\nI changed the .gitmodules to reflect my changes, did a git submodule sync.\nThis works flawlessly too!\n\nBut what if someone wants to checkout an older version of the project? (for\ncomparison, or because he/she wanted to try something out)\nHe would get an old .gitmodules with old paths.\nAfter a git submodule sync he would get errors, because old paths wont work\nanymore, because I changed some paths on the server \n\nIt is only one project I have this problem and therein I changed the\n.gitmodules only 3 times. Is it possible to rewrite .gitmodules on these\nspecific  commits on the server (perhaps with git-filter-branch)?\nOr is there another easy solution? Has someone ever had this problem?\n\nHope you can help,\nKind regards,\nHarald Heigl\n"}]}