Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
2010-03-03 Mario Carrion <mario@carrion.mx>
Browse files Browse the repository at this point in the history
In /:
	* lib/pulque/changelogs/git.rb: Removing /
  • Loading branch information
Mario Carrion committed Mar 3, 2010
1 parent 2c1bacd commit 4af8ead
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
2010-03-03 Mario Carrion <mario@carrion.mx>

* lib/pulque/changelogs/git.rb: Removing /

2010-03-03 Mario Carrion <mario@carrion.mx>

* bin/pcl: Using working directory when no arguments are used.
Expand Down
11 changes: 10 additions & 1 deletion lib/pulque/changelogs/git.rb
Expand Up @@ -69,9 +69,10 @@ def print
def format_array(main_array, array, section_message)
# Excluding files that are not in the same level
files = []

array.each do |file|
if "#{file.path[0,@pwd_relative.length]}" == @pwd_relative
files << file.path[@pwd_relative.length, file.path.length-@pwd_relative.length]
files << remove_slash!(file.path[@pwd_relative.length, file.path.length-@pwd_relative.length])
end
end

Expand All @@ -83,6 +84,14 @@ def format_array(main_array, array, section_message)
end
end
end

def remove_slash!(file)
if file[0,1] == "/"
puts "fil is #{file}"
file = file [1,file.length-1]
end
file
end
end

Pulque::ChangeLogs::Factory.register(Pulque::ChangeLogs::GitChangeLog)
Expand Down

0 comments on commit 4af8ead

Please sign in to comment.