summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-09-28 11:02:31 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-09-28 12:13:48 -0500
commit2772109ac15bed2bd199294f8d770f49a749b4bd (patch)
treeadae1f9a4d0c073182fd6d2e0c01b7dcb7428e2c /lib/api/internal.rb
parenta4944fb7155fc8aa4d1541d9f1e4e80c00f49292 (diff)
downloadgitlab-ce-lfs-ssh-authorization-fix.tar.gz
Handle LFS token creation and retrieval in the same method, and in the same Redis connection.lfs-ssh-authorization-fix
Reset expiry time of token, if token is retrieved again before it expires.
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 090d04544da..9a5d1ece070 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -90,7 +90,7 @@ module API
{
username: token_handler.actor_name,
- lfs_token: token_handler.generate,
+ lfs_token: token_handler.token,
repository_http_path: project.http_url_to_repo
}
end