We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb68548 commit df3e68cCopy full SHA for df3e68c
profile/benchmarking/results.rb
@@ -15,6 +15,7 @@
15
# specific language governing permissions and limitations
16
# under the License.
17
18
+require 'pry-nav'
19
module Elasticsearch
20
module Benchmarking
21
@@ -201,11 +202,12 @@ def adapter
201
202
203
def git_doc
204
sha = `git rev-parse HEAD`
- branch = `git branch | grep \\* | cut -d ' ' -f2`
205
+ branch = /\* (.+)/.match(`git branch`)[1]
206
commit_message = `git log -1 --pretty=%B`
207
repository = 'elasticsearch-ruby'
208
- { branch: branch.chomp,
209
+
210
+ { branch: branch,
211
sha: sha.chomp,
212
commit_message: commit_message.chomp,
213
repository: repository.chomp }
0 commit comments