summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repository/queries/blob_info.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/repository/queries/blob_info.query.graphql')
-rw-r--r--app/assets/javascripts/repository/queries/blob_info.query.graphql11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/assets/javascripts/repository/queries/blob_info.query.graphql b/app/assets/javascripts/repository/queries/blob_info.query.graphql
index a8f263941e2..45f07f7dc58 100644
--- a/app/assets/javascripts/repository/queries/blob_info.query.graphql
+++ b/app/assets/javascripts/repository/queries/blob_info.query.graphql
@@ -1,11 +1,18 @@
-query getBlobInfo($projectPath: ID!, $filePath: String!) {
+query getBlobInfo($projectPath: ID!, $filePath: String!, $ref: String!) {
project(fullPath: $projectPath) {
+ id
userPermissions {
pushCode
+ downloadCode
+ }
+ pathLocks {
+ nodes {
+ path
+ }
}
repository {
empty
- blobs(paths: [$filePath]) {
+ blobs(paths: [$filePath], ref: $ref) {
nodes {
webPath
name