git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git server side "pre-receive" hook to create new repositories
@ 2019-03-09 10:46 Dimitri Joukoff
  2019-03-19  7:06 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Dimitri Joukoff @ 2019-03-09 10:46 UTC (permalink / raw)
  To: git@vger.kernel.org

Some time ago, Feb 2018, I put in a proposal at Swift.org , that would
allow the Swift Package Manager to clone packages from the Internet to a
local git server and use the local version without requiring updates to
the Swift package:
https://forums.swift.org/t/proposal-to-enable-spm-to-use-a-local-repository-mirror/10291/5
.  At the time, I also raised an issue at
https://github.com/github/platform-samples/issues/171 asking for the
feature described below.  However, today I realised that that was not
the right place to make such a request, and hence I've written this email.

The above thread contains a solution to the local mirror problem whose
only drawback was that new repositories had to be MANUALLY initialised
bare on the local server.  In all other respects, in my opinion, the
solution worked perfectly and saved me downloading huge amounts of data
each time I performed a distribution clean on the project or switched to
another project that used the same package.  The solution published at
Swift.org used a Ubuntu 16.04.2 server running Git 2.16.2, and the
client was a Macbook Pro running MacOS with its default git.

Thus, this feature request is asking that the 'pre-receive' hook
triggers when someone tries to push to a repository regardless of
whether the repository exists.  This would allow automatic creation of
new repositories and smooth the work-flow described above.  If the
semantics of the existing 'pre-receive' hook are such that it would not
be suitable for such a purpose, then an alternative way of providing the
call-back ability would be implemented.

Best regards,
Dimitri.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-21  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-09 10:46 Git server side "pre-receive" hook to create new repositories Dimitri Joukoff
2019-03-19  7:06 ` Jeff King
2019-03-19  9:24   ` Ævar Arnfjörð Bjarmason
2019-03-19 12:16     ` Dimitri Joukoff
2019-03-21  9:28       ` Sitaram Chamarty

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).