cms-sw / cms-git-tools

CMS Git Helpers
34 stars 26 forks source link

add "--no-user" option to avoid referencing the "my-cmssw" repository #36

Closed fwyzard closed 11 years ago

fwyzard commented 11 years ago

add "--no-user" option to git-cms-init, git-cms-addpkg and git-cms-merge-topic to avoid referencing the "my-cmssw" repository.

git-cms-addpkg and git-cms-merge-topic simply pass the option (along with --ssh and --https) to git-cms-init.

ktf commented 11 years ago

Thanks.

Wouldn't it be better though to have it simply work if the fork was not there? Adding a special option, does not seem to be the correct way to go IMHO.

fwyzard commented 11 years ago

OK for me... but how do I test that ? Just let 'git fetch' fail ?

By the way, how does cmsbuild set up 'user.github', 'user.name', etc. ? It should also work simply by setting user.github = cms-sw (and using https instead of ssh to avoid hanging on the ssh authentication request)

fwyzard commented 11 years ago

Hi @ktf , @davidlt , please disregard this request, and take instead https://github.com/cms-sw/cms-git-tools/pull/37 , which handles the missing personal repository with a non-fatal warning message.