diff options
-rw-r--r-- | lib/leap_cli/util.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index 45606b7..8826d21 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -427,15 +427,13 @@ module LeapCli return $? == 0 end end - + def is_git_subrepo?(dir) - Dir.chdir(dir) do - `ls .gitrepo 2>/dev/null` - return $? == 0 - end + Dir.chdir(dir) do + `ls .gitrepo 2>/dev/null` + return $? == 0 end - - + end def current_git_branch(dir) Dir.chdir(dir) do |