diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-29 22:42:02 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-29 22:42:02 +0800 |
commit | e6630d7f7276dc5cec2a02e32dc74a0a060886ab (patch) | |
tree | 65f35fecbbcede79c2ad0573fc909f6fffa5a5af /app | |
parent | 6d9fb6b0b779d7065f0c36ec15a42d0d459abbeb (diff) | |
download | gitlab-ce-e6630d7f7276dc5cec2a02e32dc74a0a060886ab.tar.gz |
Make sure inspect doesn't generate crazy string
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 9fe39172b19..04a76c365be 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -79,6 +79,10 @@ class Repository ) end + def inspect + "#<#{self.class.name}:#{@disk_path}>" + end + # # Git repository can contains some hidden refs like: # /refs/notes/* |