Skip to content

Commit 61fede7

Browse files
author
David Futcher
committed
Fix bug when pushing first commit of a git repo. Add AUTHORS and CHANGELOG. Update README.md
1 parent 3c31ef0 commit 61fede7

5 files changed

Lines changed: 17 additions & 2 deletions

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
David Futcher <bobbo [at] ubuntu [dot] com>

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## [0.1.0] - 2016-01-31
2+
3+
- Initial release.
4+
- Upload files to S3 buckets.
5+
- Track which git commits have been uploaded, only upload files that have changed since last push.
6+
- Configuration file saves bucket/region arguments for simplified subsequent uploads.
7+
- Files tracked in git can be ignored (not uploaded) using a configuration directive, supporting basic regexes.
8+
- Files not tracked in git can be specified to be uploaded. A runtime flag can be given to force the upload of these files when no changes are made to git files.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015 David Futcher
1+
Copyright (c) 2015 - 2016 David Futcher
22

33

44
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ It can be used for deploying [static websites hosted on S3](http://docs.aws.amaz
88
- Fast uploads by only uploading new commits.
99
- Single binary, no [dependencies on language runtimes](https://github.com/schickling/git-s3)
1010

11+
## Installation
12+
13+
Grab a binary for your platform from the releases. Or check out the code, run `go get` and `go run git-s3-push.go`.
14+
15+
Git must be installed on your path.
16+
1117
## Usage
1218
Authentication credentials are taken from the standard AWS environment variables. Bucket name and AWS region are supplied as arguments.
1319

git-s3-push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (repo *Repository) FindUnpushedModifiedFiles() error {
184184
visited := mapset.NewSet();
185185

186186
currentCommit := repo.HeadCommit;
187-
for currentCommit != nil && currentCommit.ParentCount() > 0 {
187+
for currentCommit != nil {
188188
if repo.LastPushCommit != nil && repo.LastPushCommit.Id().Equal(currentCommit.Id()) {
189189
break;
190190
}

0 commit comments

Comments
 (0)