diff --git a/config/config.go b/config/config.go index 70dcde37..46877d0f 100644 --- a/config/config.go +++ b/config/config.go @@ -139,7 +139,7 @@ type Values struct { } // NewFrom returns a new `*config.Configuration` that reads both its Git -// and Enviornment-level values from the ones provided instead of the actual +// and Environment-level values from the ones provided instead of the actual // `.gitconfig` file or `os.Getenv`, respectively. // // This method should only be used during testing. diff --git a/config/delayed_environment.go b/config/delayed_environment.go index b80caf48..7c86475f 100644 --- a/config/delayed_environment.go +++ b/config/delayed_environment.go @@ -7,7 +7,7 @@ import ( // delayedEnvironment is an implementation of the Environment which wraps the legacy // behavior of `*config.Configuration.loadGitConfig()`. // -// It is functionally equivelant to call `cfg.loadGitConfig()` before calling +// It is functionally equivalent to call `cfg.loadGitConfig()` before calling // methods on the Environment type. type delayedEnvironment struct { env Environment diff --git a/config/fetcher.go b/config/fetcher.go index 2d3bf660..bebe2c7d 100644 --- a/config/fetcher.go +++ b/config/fetcher.go @@ -1,7 +1,7 @@ package config // Fetcher provides an interface to get typed information out of a configuration -// "source". These sources could be the OS enviornment, a .gitconfig, or even +// "source". These sources could be the OS environment, a .gitconfig, or even // just a `map`. type Fetcher interface { // Get returns the string value associated with a given key and a bool diff --git a/config/os_fetcher.go b/config/os_fetcher.go index 6df4802b..b738411a 100644 --- a/config/os_fetcher.go +++ b/config/os_fetcher.go @@ -12,7 +12,7 @@ import ( type OsFetcher struct { // vmu guards read/write access to vals vmu sync.Mutex - // vals maintains a local cache of the system's enviornment variables + // vals maintains a local cache of the system's environment variables // for fast repeat lookups of a given key. vals map[string]*string } diff --git a/docker/run_dockers.bsh b/docker/run_dockers.bsh index f8daaf42..2538e188 100755 --- a/docker/run_dockers.bsh +++ b/docker/run_dockers.bsh @@ -5,7 +5,7 @@ # ./run_dockers.bsh centos_6 centos_7 - Run only CentOS 6 & 7 image # ./run_dockers.bsh centos_6 -- bash #Runs bash in the CentOS 6 docker # -# Special Environmet Variables +# Special Environments Variables # REPO_HOSTNAME - Override the hostname for all the repos generated/tested # DOCKER_AUTOPULL - Default 1. If set to 0, it will not build docker images # before running diff --git a/docs/proposals/locking.md b/docs/proposals/locking.md index 47b385c9..68e7a4db 100644 --- a/docs/proposals/locking.md +++ b/docs/proposals/locking.md @@ -364,7 +364,7 @@ type LockList struct { // `LockListRequest`. NextCursor string `json:"next_cursor,omitempty"` // Err populates any error that was encountered during the search. If no - // error was encountered and the operation was succesful, then a value + // error was encountered and the operation was successful, then a value // of nil will be passed here. Err error `json:"error,omitempty"` } diff --git a/docs/proposals/locking_api.md b/docs/proposals/locking_api.md index 1adaa3d6..736263e3 100644 --- a/docs/proposals/locking_api.md +++ b/docs/proposals/locking_api.md @@ -69,7 +69,7 @@ < } ``` -* **Bad repsonse: server error** +* **Bad response: server error** ``` < HTTP/1.1 500 Internal server error < Content-Type: application/vnd.git-lfs+json @@ -93,7 +93,7 @@ > Authorization: Basic ``` -### Repsonse +### Response * **Success: unlocked** ``` diff --git a/docs/proposals/ntlm.md b/docs/proposals/ntlm.md index 06fa4525..88c01a5a 100644 --- a/docs/proposals/ntlm.md +++ b/docs/proposals/ntlm.md @@ -11,7 +11,7 @@ go through the ntlm auth flow. We will store NTLM credentials in the credential helper. When the user is prompted for their credentials they must use username:{DOMAIN}\{user} and password:{pass} -The ntlm protocl will be handled by an ntlm.go class that hides the implementation of InitHandshake, Authenticate, and Challenge. This allows miminal changesto the existing +The ntlm protocol will be handled by an ntlm.go class that hides the implementation of InitHandshake, Authenticate, and Challenge. This allows miminal changesto the existing client.go class. ### Tech diff --git a/git/githistory/fixtures_test.go b/git/githistory/fixtures_test.go index 098aeb5a..7b8a61b4 100644 --- a/git/githistory/fixtures_test.go +++ b/git/githistory/fixtures_test.go @@ -16,7 +16,7 @@ import ( ) // DatabaseFromFixture returns a *gitobj.ObjectDatabase instance that is safely -// mutable and created from a template equivelant to the fixture that you +// mutable and created from a template equivalent to the fixture that you // provided it. // // If any error was encountered, it will call t.Fatalf() immediately. diff --git a/lfshttp/stats.go b/lfshttp/stats.go index 34afa1b7..2c9dec19 100644 --- a/lfshttp/stats.go +++ b/lfshttp/stats.go @@ -43,7 +43,7 @@ func (c *Client) LogHTTPStats(w io.WriteCloser) { } // LogStats is intended to be called after all HTTP operations for the -// commmand have finished. It dumps k/v logs, one line per httpTransfer into +// command have finished. It dumps k/v logs, one line per httpTransfer into // a log file with the current timestamp. // // DEPRECATED: Call LogHTTPStats() before the first HTTP request. diff --git a/locking/api.go b/locking/api.go index 295c230a..984f60d2 100644 --- a/locking/api.go +++ b/locking/api.go @@ -172,7 +172,7 @@ type lockList struct { // `LockListRequest`. NextCursor string `json:"next_cursor,omitempty"` // Message populates any error that was encountered during the search. If no - // error was encountered and the operation was succesful, then a value + // error was encountered and the operation was successful, then a value // of nil will be passed here. Message string `json:"message,omitempty"` DocumentationURL string `json:"documentation_url,omitempty"` @@ -238,7 +238,7 @@ type lockVerifiableList struct { // `LockListRequest`. NextCursor string `json:"next_cursor,omitempty"` // Message populates any error that was encountered during the search. If no - // error was encountered and the operation was succesful, then a value + // error was encountered and the operation was successful, then a value // of nil will be passed here. Message string `json:"message,omitempty"` DocumentationURL string `json:"documentation_url,omitempty"` diff --git a/locking/cache.go b/locking/cache.go index b169a69b..6226fea2 100644 --- a/locking/cache.go +++ b/locking/cache.go @@ -35,7 +35,7 @@ func (c *LockCache) Add(l Lock) error { return nil } -// Remove a cached lock by path becuase it's been relinquished +// Remove a cached lock by path because it's been relinquished func (c *LockCache) RemoveByPath(filePath string) error { ilock := c.kv.Get(filePath) if lock, ok := ilock.(*Lock); ok && lock != nil { diff --git a/locking/locks.go b/locking/locks.go index 762b0d64..136b3e41 100644 --- a/locking/locks.go +++ b/locking/locks.go @@ -393,7 +393,7 @@ func (c *Client) searchRemoteLocks(filter map[string]string, limit int) ([]Lock, // // If the API call failed, an error will be returned. If multiple locks matched // the given path (should not happen during real-world usage), an error will be -// returnd. If no locks matched the given path, an error will be returned. +// returned. If no locks matched the given path, an error will be returned. // // If the API call is successful, and only one lock matches the given filepath, // then its ID will be returned, along with a value of "nil" for the error. diff --git a/rpm/build_rpms.bsh b/rpm/build_rpms.bsh index 51dd9653..72e02843 100755 --- a/rpm/build_rpms.bsh +++ b/rpm/build_rpms.bsh @@ -171,7 +171,7 @@ touch ${CURDIR}/SOURCES/RPM-GPG-KEY-GITLFS echo "Build git-lfs rpm..." -#--no-deps added for now so you can compile without offical rpms installed +#--no-deps added for now so you can compile without official rpms installed "${RPMBUILD[@]}" --nodeps -ba ${CURDIR}/SPECS/git-lfs.spec echo "All Done!" diff --git a/t/cmd/util/testutils.go b/t/cmd/util/testutils.go index 58d60d0c..43574b1a 100644 --- a/t/cmd/util/testutils.go +++ b/t/cmd/util/testutils.go @@ -439,7 +439,7 @@ func (r *Repo) AddRemote(name string) *Repo { return remote } -// Just a psuedo-random stream of bytes (not cryptographic) +// Just a pseudo-random stream of bytes (not cryptographic) // Calls RNG a bit less often than using rand.Source directly type PlaceholderDataReader struct { source rand.Source diff --git a/t/t-credentials.sh b/t/t-credentials.sh index 0f5f6be5..e72e92f0 100755 --- a/t/t-credentials.sh +++ b/t/t-credentials.sh @@ -4,7 +4,7 @@ ensure_git_version_isnt $VERSION_LOWER "2.3.0" -begin_test "credentails with url-specific helper skips askpass" +begin_test "credentials with url-specific helper skips askpass" ( set -e diff --git a/t/t-duplicate-oids.sh b/t/t-duplicate-oids.sh index 6f1978e8..2bf1ba23 100755 --- a/t/t-duplicate-oids.sh +++ b/t/t-duplicate-oids.sh @@ -6,7 +6,7 @@ begin_test "multiple revs with same OID get pushed once" ( set -e - reponame="mutliple-revs-one-oid" + reponame="multiple-revs-one-oid" setup_remote_repo "$reponame" clone_repo "$reponame" "$reponame" diff --git a/tasklog/log.go b/tasklog/log.go index e9765496..6bbb56f8 100644 --- a/tasklog/log.go +++ b/tasklog/log.go @@ -57,7 +57,7 @@ func ForceProgress(v bool) Option { } } -// NewLogger retuns a new *Logger instance that logs to "sink" and uses the +// NewLogger returns a new *Logger instance that logs to "sink" and uses the // current terminal width as the width of the line. Will log progress status if // stdout is a terminal or if forceProgress is true func NewLogger(sink io.Writer, options ...Option) *Logger { diff --git a/tools/stringset.go b/tools/stringset.go index aa6f4359..9438721b 100644 --- a/tools/stringset.go +++ b/tools/stringset.go @@ -149,7 +149,7 @@ func (set StringSet) Iter() <-chan string { // Equal determines if two sets are equal to each other. // If they both are the same size and have the same items they are considered equal. -// Order of items is not relevent for sets to be equal. +// Order of items is not relevant for sets to be equal. func (set StringSet) Equal(other StringSet) bool { if set.Cardinality() != other.Cardinality() { return false diff --git a/tq/custom.go b/tq/custom.go index ed75982b..fdb2adf1 100644 --- a/tq/custom.go +++ b/tq/custom.go @@ -120,7 +120,7 @@ func (a *customAdapter) Begin(cfg AdapterConfig, cb ProgressCallback) error { } func (a *customAdapter) ClearTempStorage() error { - // no action requred + // no action required return nil }