diff options
author | Michael Muré <batolettre@gmail.com> | 2019-12-10 00:42:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-10 00:42:23 +0100 |
commit | f1ed857cbd3a253d77b31c0c896fdc4ade40844f (patch) | |
tree | d1efe28a1fa666039bf8180bbed0202f0437910f /commands/root.go | |
parent | 69af7a1e0c2647c354fd9c5b55a254ba677200e1 (diff) | |
parent | 58c0e5aac97eabc02fa890123f3845ae6fe632a8 (diff) | |
download | git-bug-f1ed857cbd3a253d77b31c0c896fdc4ade40844f.tar.gz git-bug-f1ed857cbd3a253d77b31c0c896fdc4ade40844f.zip |
Merge pull request #271 from MichaelMure/bridge-credentials
bridge: huge refactor to accept multiple kind of credentials
Diffstat (limited to 'commands/root.go')
-rw-r--r-- | commands/root.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/commands/root.go b/commands/root.go index 387c6342b..1a424d32c 100644 --- a/commands/root.go +++ b/commands/root.go @@ -84,16 +84,10 @@ func loadRepoEnsureUser(cmd *cobra.Command, args []string) error { return err } - set, err := identity.IsUserIdentitySet(repo) + _, err = identity.GetUserIdentity(repo) if err != nil { return err } - if !set { - // Print the error directly to not confuse a user - _, _ = fmt.Fprintln(os.Stderr, identity.ErrNoIdentitySet.Error()) - os.Exit(-1) - } - return nil } |