aboutsummaryrefslogtreecommitdiffstats
path: root/repository/config_git.go
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-11-03 17:34:51 +0100
committerGitHub <noreply@github.com>2019-11-03 17:34:51 +0100
commit163ea9c93306c387f84ff0b85c2d8fca4c01e449 (patch)
tree05ab55090bf196b940a4f6b0e4aaec9975b997bc /repository/config_git.go
parent16bd116971bb7abc7308e95c474b433512672432 (diff)
parent57e23c8ada0a9d921a6b68187a76eb5c8b8a407d (diff)
downloadgit-bug-163ea9c93306c387f84ff0b85c2d8fca4c01e449.tar.gz
Merge pull request #236 from MichaelMure/import-after
commands: support bridge imports after a given date
Diffstat (limited to 'repository/config_git.go')
-rw-r--r--repository/config_git.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/repository/config_git.go b/repository/config_git.go
index eac882a2..63ca2457 100644
--- a/repository/config_git.go
+++ b/repository/config_git.go
@@ -111,10 +111,10 @@ func (gc *gitConfig) ReadBool(key string) (bool, error) {
return strconv.ParseBool(val)
}
-func (gc *gitConfig) ReadTimestamp(key string) (*time.Time, error) {
+func (gc *gitConfig) ReadTimestamp(key string) (time.Time, error) {
value, err := gc.ReadString(key)
if err != nil {
- return nil, err
+ return time.Time{}, err
}
return parseTimestamp(value)
}