diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-10 14:46:55 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-11-10 14:53:40 +0100 |
commit | e2445edcb99ed0aa7fcd40fe7484d71e73367334 (patch) | |
tree | f5f38c8d6d6f426631fda7feaddef34332b6040c /repository | |
parent | 45653bd31d9ec91123ee42803cd5c46b43d18528 (diff) | |
download | git-bug-e2445edcb99ed0aa7fcd40fe7484d71e73367334.tar.gz |
bridge: various improvement on the global token PR
Diffstat (limited to 'repository')
-rw-r--r-- | repository/config.go | 2 | ||||
-rw-r--r-- | repository/config_git.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/repository/config.go b/repository/config.go index d72e7b4e..4fa5c69b 100644 --- a/repository/config.go +++ b/repository/config.go @@ -38,7 +38,7 @@ type Config interface { RemoveAll(keyPrefix string) error } -func parseTimestamp(s string) (time.Time, error) { +func ParseTimestamp(s string) (time.Time, error) { timestamp, err := strconv.Atoi(s) if err != nil { return time.Time{}, err diff --git a/repository/config_git.go b/repository/config_git.go index 63ca2457..cff82afb 100644 --- a/repository/config_git.go +++ b/repository/config_git.go @@ -116,7 +116,7 @@ func (gc *gitConfig) ReadTimestamp(key string) (time.Time, error) { if err != nil { return time.Time{}, err } - return parseTimestamp(value) + return ParseTimestamp(value) } func (gc *gitConfig) rmSection(keyPrefix string) error { |