Skip to content

Update gitmodules to point to the https location of the git repositories.#3

Merged
Byron merged 1 commit intogitpython-developers:masterfrom
dbaxa:update_gitmodules
Nov 5, 2012
Merged

Update gitmodules to point to the https location of the git repositories.#3
Byron merged 1 commit intogitpython-developers:masterfrom
dbaxa:update_gitmodules

Conversation

@dbaxa
Copy link
Contributor

@dbaxa dbaxa commented Nov 1, 2012

Update gitmodules to point to the https location of the git repositories.

Signed-off-by: David dblack@atlassian.com

…ies.

Signed-off-by: David <dblack@atlassian.com>
@Byron
Copy link
Member

Byron commented Nov 2, 2012

Is there a reason you need this to be https ?
In this case, I prefer http as I dont see where the encryption overhead is beneficial, after all it will cost bandwidth and add some lateny to the initial connection.
Thanks for your reply.

@dbaxa
Copy link
Contributor Author

dbaxa commented Nov 4, 2012

@Byron the thing is github redirects requests that go to http:// to https:// so by pointing to http:// there is an unneeded additional initial http request.

Curl output showing redirection:

curl -v http://github.com/gitpython-developers/async.git -A git/1.7.3
* About to connect() to github.com port 80 (#0)
*   Trying 207.97.227.239...
* connected
* Connected to github.com (207.97.227.239) port 80 (#0)
> GET /gitpython-developers/async.git HTTP/1.1
> User-Agent: git/1.7.3
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Sun, 04 Nov 2012 23:46:08 GMT
< Content-Type: text/html
< Content-Length: 178
< Location: http://github.com/gitpython-developers/async
< Connection: keep-alive
< 
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host github.com left intact
* Closing connection #0


curl -v http://github.com/gitpython-developers/async -A git/1.7.3
* About to connect() to github.com port 80 (#0)
*   Trying 207.97.227.239...
* connected
* Connected to github.com (207.97.227.239) port 80 (#0)
> GET /gitpython-developers/async HTTP/1.1
> User-Agent: git/1.7.3
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Sun, 04 Nov 2012 23:46:16 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: close
< Location: https://github.com/gitpython-developers/async.git
< 
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Closing connection #0

@Byron
Copy link
Member

Byron commented Nov 5, 2012

Thanks for the hint! Its funny that, by trying to improve performance, I actually degraded it. Its one more example for a premature optimization, based on unverified assumptions, gone wrong.

Byron added a commit that referenced this pull request Nov 5, 2012
Update gitmodules to point to the https location of the git repositories.

Using http causes an additional redirect to https, see this curl log:

curl -v http://github.com/gitpython-developers/async.git -A git/1.7.3
* About to connect() to github.com port 80 (#0)
*   Trying 207.97.227.239...
* connected
* Connected to github.com (207.97.227.239) port 80 (#0)
> GET /gitpython-developers/async.git HTTP/1.1
> User-Agent: git/1.7.3
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Sun, 04 Nov 2012 23:46:08 GMT
< Content-Type: text/html
< Content-Length: 178
< Location: http://github.com/gitpython-developers/async
< Connection: keep-alive
< 
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host github.com left intact
* Closing connection #0


curl -v http://github.com/gitpython-developers/async -A git/1.7.3
* About to connect() to github.com port 80 (#0)
*   Trying 207.97.227.239...
* connected
* Connected to github.com (207.97.227.239) port 80 (#0)
> GET /gitpython-developers/async HTTP/1.1
> User-Agent: git/1.7.3
> Host: github.com
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 301 Moved Permanently
< Server: nginx
< Date: Sun, 04 Nov 2012 23:46:16 GMT
< Content-Type: text/html
< Content-Length: 178
< Connection: close
< Location: https://github.com/gitpython-developers/async.git
< 
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Closing connection #0
@Byron Byron merged commit ea54328 into gitpython-developers:master Nov 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants