11789: Merge branch 'master' into 11789-arvput-exclude-flag
[arvados.git] / services / api / app / models / commit.rb
index e4b789e099abb24c3618cd290d81a3200b597d42..1d9a821d131a4721bf461ff613531748c38d95fb 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class Commit < ActiveRecord::Base
   extend CurrentApiClient
 
@@ -72,7 +76,7 @@ class Commit < ActiveRecord::Base
     # If string is invalid, nothing else to do
     if !git_check_ref_format(max_hash)
       logger.warn "ref returned by `GIT_DIR=#{gitdir} #{git_max_hash_cmd}` was invalid for max_hash: #{max_hash}"
-      return[]
+      return []
     end
 
     resolved_exclude = nil