Subject: Do hooks follow redirects?

Original Post Nicolás Sanguinetti's Avatar

Nicolás Sanguinetti

08 Sep, 2009 01:48 PM

Say I change the receiving end of a hook, and set the old one to return a 301 (or 303) status. Would the post-receive hook follow the redirect?

This is for http://howsmycode.com, we want to change the post-receive URL for each repo, but the repos are not controlled by us, so we can't just change the URL on github :) If it follows redirects, cool, if not, we'll have all our users change their hooks, but it'd be neat if we didn't need that ^_^

  1. Support Staff 2 Posted by Tekkub on 08 Sep, 2009 07:05 PM

    Tekkub's Avatar

    I'm not certain, you'd have to test, but I don't think they will follow a redirect currently. It can probably be adjusted to do so though.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

25 Nov, 2009 03:07 AM
25 Nov, 2009 01:41 AM
25 Nov, 2009 01:27 AM
24 Nov, 2009 10:56 PM
24 Nov, 2009 10:54 PM