Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTTP instead of HTTPS #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ Sure, check `whatthecommit -h` for usage and options.
#### Do I need this? / Alternatives

No, [whatthecommit.com][wtc] provides since some time a
plain text interface at https://whatthecommit.com/index.txt - so a good
plain text interface at http://whatthecommit.com/index.txt - so a good
alternative would be to create something like:

```bash
# .bashrc / .zshrc or whatever
function whatthecommit() {
curl --silent --fail https://whatthecommit.com/index.txt
curl --silent --fail http://whatthecommit.com/index.txt
}
```

...or how about a git alias?

```bash
# From https://github.com/ngerakines/commitment/issues/69#issuecomment-91053061
git config --global alias.yolo '!git add -A && git commit -m "$(curl --silent --fail https://whatthecommit.com/index.txt)"'
git config --global alias.yolo '!git add -A && git commit -m "$(curl --silent --fail http://whatthecommit.com/index.txt)"'
```

Thanks to [m13253](https://github.com/m13253) for the index.txt trick.

[wtc]: https://whatthecommit.com/
[wtc]: http://whatthecommit.com/
2 changes: 1 addition & 1 deletion whatthecommit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'open-uri'

class WhatTheCommit
VERSION = "1.1.0"
URL = "https://whatthecommit.com/index.txt"
URL = "http://whatthecommit.com/index.txt"

attr_reader :disclaimer, :iterations

Expand Down