Only check for empty first diff line if there are diff lines
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 10 Oct 2012 08:06:31 +0000 (10:06 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 10 Oct 2012 08:06:31 +0000 (10:06 +0200)
commitc1194d24f71f9f8ff9aa1fd83337a70d7c233481
tree2df8735485cf6a20a592e9cb83e4444dd93b858b
parent0142283e2b014f5206bba70a7d6e695096b4da1c
Only check for empty first diff line if there are diff lines

When an RCS commit is forced, the diff will be empty (no diff lines),
so chomping the first (non-existant) line to check if it's empty will
raise an exception.

Fix by not checking for the emptiness of the first line if there aren't
any lines in the diff.
rcs-fast-export.rb