public
Description: Web based git repository server for Small to Large development teams
Homepage: http://mikeheijmans/lookgit
Clone URL: git://github.com/parabuzzle/lookgit.git
Click here to lend your support to: lookgit and make a donation at www.pledgie.com !
Fixed nil exception caused by a repo that does not have a parent yet
Mike (author)
Thu Apr 10 22:50:18 -0700 2008
commit  45d6d60f9fc7fe1d702adbf5b967a3c93d59c41e
tree    eb58f333bfb9c793744dcc8257ed456828fa54b2
parent  5a0d116edf7bceb0cef32d6610021d460bcd2654
...
263
264
265
 
 
 
 
266
267
268
269
270
 
 
271
272
273
...
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
0
@@ -263,11 +263,17 @@ module GitWeb::Views
0
               span.tag { code t }
0
             end if @tags[log.sha]
0
           end
0
+ if log.sha == nil then log.sha = 'HEAD'
0
+
0
+ if log.parent.sha == nil then log.parent.sha = 'HEAD'
0
+
0
           td { a 'commit', :href => R(Commit, @repo, log.sha) }
0
           td { a 'commit-diff', :href => R(Diff, @repo, log.sha, log.parent.sha) }
0
           td { a 'tree', :href => R(Tree, @repo, log.gtree.sha) }
0
           td { a 'archive', :href => R(Archive, @repo, log.gtree.sha) }
0
         end
0
+ end
0
+ end
0
       end
0
     end
0
     

Comments

  • parabuzzle Thu Apr 10 23:20:37 -0700 2008

    GAH!! that was dumb… now you can’t see any of the tree links… must fix :)